Skip to content
Snippets Groups Projects
Commit 099d3329 authored by Martin Beseda's avatar Martin Beseda
Browse files

NEW: Created macro WRITE_TO_OFS_DEBUG in message.h

parent 056292c8
No related branches found
No related tags found
No related merge requests found
...@@ -11,8 +11,13 @@ ...@@ -11,8 +11,13 @@
#ifdef L4N_DEBUG #ifdef L4N_DEBUG
#define COUT_DEBUG(inp) assert(std::cerr << std::flush << "DEBUG: " << inp << std::flush) #define COUT_DEBUG(inp) assert(std::cerr << std::flush << "DEBUG: " << inp << std::flush)
#define WRITE_TO_OFS_DEBUG(ofs, msg) { if(ofs && ofs->is_open())\
*ofs << "DEBUG: " << msg;\
}
#else #else
#define COUT_DEBUG(inp) #define COUT_DEBUG(inp)
#define WRITE_TO_OFS_DEBUG(ofs, msg)
#endif // L4N_DEBUG #endif // L4N_DEBUG
#endif //PROJECT_MESSAGE_H #endif //PROJECT_MESSAGE_H
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment