On 05/08/2017 10:00 AM, [email protected] wrote:
> Might there be a way for a macro to know the number of
> spaces to the left of itself on the line that the macro appears in the source?
> 
> --
> To preserve indentation , my work around is to pass in
> the number spaces that the macro output should be indented;
> would be nice to automate.

Sorry; there's the builtin __line__, but that's as fine as the
granularity gets for now. You'd have to patch m4 to add a new builtin
for tracking column position.  It sounds like your workaround is the
best you can do for now.

-- 
Eric Blake, Principal Software Engineer
Red Hat, Inc.           +1-919-301-3266
Virtualization:  qemu.org | libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to