Next: dne - "Do Not Edit" warning, Previous: def-file - definitions file name, Up: AutoGen Scheme Functions [Contents][Index]
Usage: (def-file-line ag-name [ msg-fmt ])
Returns the file and line number of a AutoGen defined value, using
either the default format, "from %s line %d", or else the format you
supply. For example, if you want to insert a "C" language file-line
directive, you would supply the format "# %2$d \"%1$s\"", but that
is also already supplied with the scheme variable
See format file info as, “#line nn "file"
”. You may use it thus:
(def-file-line "ag-def-name" c-file-line-fmt)
It is also safe to use the formatting string, "%2$d". AutoGen uses an argument vector version of printf: See Replacement for Stdio Formatting Library.
Arguments:
ag-name - name of AutoGen value
msg-fmt - Optional - formatting for line message