Re: ignore information from included with -dV

Eric Blake <[email protected]> Mon, 26 Nov 2018 11:32:17 -0600
Newsgroups gmane.comp.gnu.m4.general
Organization Red Hat, Inc.
Message-ID <[email protected]>
On 11/25/18 5:19 AM, Peng Yu wrote:
> Hi,
> 
> The -dV option shows information from files included by include(). Is
> there a way to show the debug info only for the current file but not
> the included files? Thanks.

The 'debugmode' macro should be able to control anything that the 
command line -d argument can control.  Thus, your solution is to define 
a wrapper around the 'include' macro which temporarily turns off 
debugging, includes the file, then reinstates debugging.

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