Skip to content
Snippets Groups Projects
Commit 3b7a9f91 authored by Fabian Paus's avatar Fabian Paus
Browse files

Fix debug build

parent dee01ada
No related branches found
No related tags found
No related merge requests found
......@@ -243,6 +243,17 @@ namespace VirtualRobot
}
/*!
Initialize the runtime envionment. This method calls VisualizationFactory::init().
*/
void VIRTUAL_ROBOT_IMPORT_EXPORT init(int &argc, char* argv[], const std::string &appName);
void VIRTUAL_ROBOT_IMPORT_EXPORT init(const std::string &appName);
// init method is storing appName, since the c_string is passed by refrence to QT -> we must ensure that the string stays alive
VIRTUAL_ROBOT_IMPORT_EXPORT extern std::string globalAppName;
} // namespace
#define VR_INFO std::cout <<__FILE__ << ":" << __LINE__ << ": "
#define VR_WARNING std::cerr <<__FILE__ << ":" << __LINE__ << " -Warning- "
#define VR_ERROR std::cerr <<__FILE__ << ":" << __LINE__ << " - ERROR - "
......@@ -254,27 +265,15 @@ namespace VirtualRobot
#define VR_ASSERT_MESSAGE(a,b) do{}while(false)
#else
/*!
This assert macro does nothing on RELEASE builds.
*/
#define VR_ASSERT( a ) BOOST_ASSERT( a )
//THROW_VR_EXCEPTION_IF(!(a), "ASSERT failed (" << #a << ")" );
// we have to switch to boost 1.48 to allow messages (BOOST_ASSERT_MSG) ....
#define VR_ASSERT_MESSAGE(a,b) BOOST_ASSERT(a)
//THROW_VR_EXCEPTION_IF(!(a), "ASSERT failed (" << #a << "): " << b );
#endif
#include <boost/assert.hpp>
/*!
Initialize the runtime envionment. This method calls VisualizationFactory::init().
*/
void VIRTUAL_ROBOT_IMPORT_EXPORT init(int &argc, char* argv[], const std::string &appName);
void VIRTUAL_ROBOT_IMPORT_EXPORT init(const std::string &appName);
/*!
This assert macro does nothing on RELEASE builds.
*/
#define VR_ASSERT( a ) BOOST_ASSERT( a )
// init method is storing appName, since the c_string is passed by refrence to QT -> we must ensure that the string stays alive
VIRTUAL_ROBOT_IMPORT_EXPORT extern std::string globalAppName;
#define VR_ASSERT_MESSAGE(a,b) BOOST_ASSERT_MSG(a, b)
} // namespace
#endif
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