Skip to content

Commit

Permalink
Merge branch 'baagaard/feature-journal-func'
Browse files Browse the repository at this point in the history
* baagaard/feature-journal-func:
  Fix preprocessor code for detecting name of function.
  • Loading branch information
baagaard-usgs committed Nov 30, 2016
2 parents 99e969a + 1a29106 commit 5a1873d
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
11 changes: 10 additions & 1 deletion journal/macros.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,16 @@
* __HERE__ has to be a preprocessor macro
*/

#if defined(HAVE__FUNC__)
#undef __FUNCTION__
#if defined(__FUNCTION_NAME__)
#define __FUNCTION__ __FUNCTION_NAME__
#else
#if defined(__func__)
#define __FUNCTION__ __func__
#endif
#endif

#if defined(__FUNCTION__)
#define __HERE__ __FILE__,__LINE__,__FUNCTION__
#define __HERE_ARGS__ filename, lineno, funcname
#define __HERE_DECL__ const char * filename, long lineno, const char * funcname
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
setup(

name = 'pythia',
version = '0.8.1.17',
version = '0.8.1.18',

scripts = ['bin/idd.py', 'bin/ipad.py', 'bin/journald.py'],

Expand Down

0 comments on commit 5a1873d

Please sign in to comment.