I'd like for the detail message to use the file/line number where ${Detail} was actually expanded/"invoked". Is this possible, somehow, without my having to "${__FUNCTION__}" ... everywhere I use ${Detail}?
!macro _Detail __FUNCTION __FILE __LINE msg
DetailPrint "${__FUNCTION}() [${__FILE}:${__LINE}] ${msg}"
!macroend
!define Detail `!insertmacro _Detail __FUNCTION__ __FILE__ __LINE__`
;; ...
;; In some other file...
${Detail} "Message...."
Delayed expansion of __FILE__ and __LINE__
Is it possible to delay the expansion of __FILE__ and __LINE__ such that I could pass the caller's context file/line to a macro?