Commit 652f1dd3 authored by Andrew Mark Wharton's avatar Andrew Mark Wharton Committed by Simon Spannagel
Browse files

Add #ifndef guard around __FILE_NAME__ for Clang 11

(cherry picked from commit aa6e2335)
parent d892fd04
Pipeline #1476318 passed with stages
in 44 minutes and 28 seconds
......@@ -228,10 +228,12 @@ namespace allpix {
using Log = DefaultLogger;
#ifndef __FILE_NAME__
/**
* @brief Base name of the file without the directory
*/
#define __FILE_NAME__ (strrchr(__FILE__, '/') ? strrchr(__FILE__, '/') + 1 : __FILE__)
#endif
/**
* @brief Execute a block only if the reporting level is high enough
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment