COIN-OR::LEMON - Graph Library

Ticket #148: func-c99.patch

File func-c99.patch, 688 bytes (added by Akos Ladanyi, 11 years ago)

112ed801139d

  • lemon/assert.h

    # HG changeset patch
    # User Akos Ladanyi <ladanyi@tmit.bme.hu>
    # Date 1222004761 -3600
    # Node ID 112ed801139d58d4703367360350a065166c8c33
    # Parent  983d8c23aff82750de15e5d76dd699b8e5b19593
    Use __func__ only if the compiler supports it (ticket #148).
    
    diff --git a/lemon/assert.h b/lemon/assert.h
    a b  
    107107#    define LEMON_FUNCTION_NAME (__PRETTY_FUNCTION__)
    108108#  elif defined _MSC_VER
    109109#    define LEMON_FUNCTION_NAME (__FUNCSIG__)
     110#  elif __STDC_VERSION__ >= 199901L
     111#    define LEMON_FUNCTION_NAME (__func__)
    110112#  else
    111 #    define LEMON_FUNCTION_NAME (__func__)
     113#    define LEMON_FUNCTION_NAME ("<unknown>")
    112114#  endif
    113115#endif
    114116