Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Simox
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Florian Leander Singer
Simox
Commits
3b7a9f91
Commit
3b7a9f91
authored
4 years ago
by
Fabian Paus
Browse files
Options
Downloads
Patches
Plain Diff
Fix debug build
parent
dee01ada
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
VirtualRobot/VirtualRobot.h
+18
-19
18 additions, 19 deletions
VirtualRobot/VirtualRobot.h
with
18 additions
and
19 deletions
VirtualRobot/VirtualRobot.h
+
18
−
19
View file @
3b7a9f91
...
...
@@ -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
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment