COIN-OR::LEMON - Graph Library

Changeset 142:8b703d177341 in lemon-main


Ignore:
Timestamp:
04/13/08 20:15:45 (17 years ago)
Author:
Akos Ladanyi <ladanyi@…>
Branch:
default
Phase:
public
Message:

Improved LEMON_FUNCTION_NAME macro.
It should work fine with GCC and the MS C++ compilers. Otherwise it reverts to
using the func variable which is C99, but I couldn't find a better
alternative.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lemon/assert.h

    r118 r142  
    104104
    105105#ifndef LEMON_FUNCTION_NAME
    106 #  define LEMON_FUNCTION_NAME (__PRETTY_FUNCTION__)
     106#  if defined __GNUC__
     107#    define LEMON_FUNCTION_NAME (__PRETTY_FUNCTION__)
     108#  elif defined _MSC_VER
     109#    define LEMON_FUNCTION_NAME (__FUNCSIG__)
     110#  else
     111#    define LEMON_FUNCTION_NAME (__func__)
     112#  endif
    107113#endif
    108114
Note: See TracChangeset for help on using the changeset viewer.