]> git.kaiwu.me - haproxy.git/commit
MINOR: initcall: record the file and line declaration of an INITCALL
authorWilly Tarreau <w@1wt.eu>
Tue, 3 Mar 2026 09:08:19 +0000 (10:08 +0100)
committerWilly Tarreau <w@1wt.eu>
Thu, 12 Mar 2026 17:06:38 +0000 (18:06 +0100)
commit33c928c7452f07bdd26fb833debb8383a2e20862
treed4f0a1efbcbdcf084cd7bff938899a523f131958
parent3f3a0609e34509af70b8b87d95cbe1183d4affa5
MINOR: initcall: record the file and line declaration of an INITCALL

The INITCALL macros will now store the file and line number where they
are declared into the initcall struct, and RUN_INITCALLS() will assign
them to the global caller_file and caller_line variables, and will even
set caller_initcall to the current initall so that at any instant such
functions know where their caller declared them. This will help with
error messages and traces where a bit of context will be welcome.
include/haproxy/init.h
include/haproxy/initcall.h
src/init.c