Re: gcc internals question

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



"Marc E. Fiuczynski" <mef@xxxxxxxxxxxxxxxx> writes:

> What internal function in gcc tells me the number of args the current
> function has?

I suppose you can extract it from current_function_decl.  Walk down
the list DECL_ARGUMENTS (current_function_decl).  If it doesn't end in
void_list_node, it's a varargs function.  There are various examples
in the sources, e.g., do_warn_unused_parameter().

Ian

[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux