Skip to Main Content

DevOps, CI/CD and Automation

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Introduce macro __FUNCTION__?

2653080Apr 18 2014 — edited Apr 21 2014

There is a very convenient set of predefined macros - __FILE__, __LINE__ and __FUNCTION__. These defines work in GCC, ICC, MSVC, clang.

But, unfortunately macro __FUNCTION__ is absent in Solaris Studio 12.3. Would you please introduce this predefined macro in the next version of Solaris Studio? Of course, if it does not break anything.

It should work similar to __LINE__, __FILE__ i.e. like a string literal.

P.S.

I know that it is not standart, but it is very convenient and supported by mainstream compilers.

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 19 2014
Added on Apr 18 2014
2 comments
1,516 views