Variable Args in macros.

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

 



I am using gcc v3.3.2 on a linux system.

I want to create a macro that captures the __FILE__ and __LINE__ macros in the process of calling a function that uses variable args.

The synopsis of the function to be called function is currently:
  void throwException(const char *msg1 ...);

I assume that one thing that this process is needed to change is to:
  void throwException( const char *moduleName, int lineno ...)

Is it possible to create this macro?  If so what would it look like?


[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