• Show log

    Commit

  • Hash : e85818d2
    Author : Azat Khuzhin
    Date : 2018-06-19T10:15:08

    Cleanup __func__ detection
    
    First of all __func__ is not a macro, it is char[] array, so the code
    that we had before in cmake, was incorrect, i.e.:
      #if defined (__func__)
      #define EVENT____func__ __func__
      #elif defined(__FUNCTION__)
      #define EVENT____func__  __FUNCTION__
      #else
      #define EVENT____func__ __FILE__
      #endif
    
    So just detect do we have __func__/__FUNCTION__ in configure/cmake
    before build and define EVENT__HAVE___func__/EVENT__HAVE___FUNCTION__
    to use the later to choose which should be used as a __func__ (if it is
    not presented).
    
    Closes: #644