Commit db83de9e authored by Simon Spannagel's avatar Simon Spannagel
Browse files

Only define __FILE_NAME__ if not defined yet

parent a0d3ebac
......@@ -231,7 +231,9 @@ namespace corryvreckan {
/**
* @brief Base name of the file without the directory
*/
#ifndef __FILE_NAME__
#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