Skip to content

Commit

Permalink
goddammit the github actions gcc is ancient
Browse files Browse the repository at this point in the history
  • Loading branch information
imyxh committed Jul 24, 2024
1 parent 5f244f0 commit 83e34b3
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions libaylp/logging.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@

enum { LOG_TRACE, LOG_DEBUG, LOG_INFO, LOG_WARN, LOG_ERROR, LOG_FATAL };

// if we're on old gcc and we don't have __FILE_NAME__, just use __FILE__
#ifndef __FILE_NAME__
#define __FILE_NAME__ __FILE__
#endif

// adds trailing newline
#define log_trace(...) \
log_impl(LOG_TRACE, __FILE_NAME__, __LINE__, 1, __VA_ARGS__)
Expand Down

0 comments on commit 83e34b3

Please sign in to comment.