Re: Using custom qualifiers like __THROW

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

 



Hi Snodx,

>After studying a bit I came to know that it actually expands to the function throw()

You need to do some more studying, since it does not expand to the function "throw()".

It expands to the function decoration "throw()" in C++ compiles, and to nothing for C compiles.

>I am getting the following compile-time errors

Your macro magic expand to...

int square_func(int) void snodx() { return; }; //LINE 5

...which is not valid C or C++.  If you want, you could make your own computer programming language where this is a valid syntax.

HTH,
--Eljay 


[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