X-Git-Url: https://git.saurik.com/bison.git/blobdiff_plain/fb7c5b1f23ff4af726b73bee6db669cbdab7de94..07a6e87d46f32a8248c2160ddd2345333f1c84b4:/data/bison.m4 diff --git a/data/bison.m4 b/data/bison.m4 index d8b8539b..5930ca72 100644 --- a/data/bison.m4 +++ b/data/bison.m4 @@ -373,6 +373,13 @@ m4_define([b4_symbol_if], [m4_fatal([$0: field $2 of $1 is not a Boolean:] b4_symbol([$1], [$2]))])]) +# b4_symbol_action_location(SYMBOL-NUM, KIND) +# ------------------------------------------- +# Report the location of the KIND action as FILE:LINE. +m4_define([b4_symbol_action_location], +[b4_symbol([$1], [$2_file]):b4_syncline([b4_symbol([$1], [$2_line])])]) + + # b4_symbol_action(SYMBOL-NUM, KIND) # ---------------------------------- # Run the action KIND (destructor or printer) for SYMBOL-NUM.