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

ENH: Simplified the message macros and removed DEBUG constant from...

ENH: Simplified the message macros and removed DEBUG constant from compilation, as it's not neccessary now.
parent 3f16d492
No related branches found
No related tags found
No related merge requests found
......@@ -23,7 +23,6 @@ if (NOT CMAKE_BUILD_TYPE)
FORCE)
elseif("CMAKE_BUILD_TYPE" STREQUAL "Debug")
#TODO rewrite to use add_compile_definitions
add_compile_options(-DDEBUG)
endif (NOT CMAKE_BUILD_TYPE)
#------------------------#
......
//
// Created by martin on 9/14/18.
//
#ifndef PROJECT_ISERIALIZABLE_H
#define PROJECT_ISERIALIZABLE_H
#endif //PROJECT_ISERIALIZABLE_H
......@@ -5,16 +5,7 @@
#ifndef PROJECT_MESSAGE_H
#define PROJECT_MESSAGE_H
#define MSG_INFO(str) {\
std::cout << "INFO: " << str << std::endl;\
}
#ifdef DEBUG
#define MSG_DEBUG(str) {\
std::cout << "DEBUG: " << str << std::endl;\
}
#else
#define MSG_DEBUG(str)
#endif
#define MSG_INFO(str) std::cout << "INFO: " << str << std::endl;
#define MSG_DEBUG(str) assert(std::cerr << "DEBUG:" << str << std::endl);
#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