Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
CoMISo
Base
Commits
c96902f5
Commit
c96902f5
authored
Aug 18, 2017
by
Max Lyon
Browse files
replace noexcept with platform dependent NEXCEPT macro
parents
f3f003e3
86ada33b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Debug/DebTime.hh
View file @
c96902f5
...
...
@@ -5,6 +5,7 @@
#include
<Base/Utils/StopWatch.hh>
#include
<Base/Debug/DebOut.hh>
#include
<Base/Utils/Exception.hh>
#ifdef DEB_ON
...
...
@@ -20,7 +21,7 @@ public:
sw_
.
start
();
}
~
StopWatchSession
()
noexcept
(
false
)
~
StopWatchSession
()
NOEXCEPT
(
false
)
{
// TODO: implement "prettier" DEB out if seconds turn into minutes/hours/etc
DEB_line
(
deb_lvl_
,
sssn_name_
<<
" took "
<<
sw_
.
stop
()
/
1000.0
<<
" s."
);
...
...
Utils/Exception.hh
0 → 100644
View file @
c96902f5
/*===========================================================================*\
* *
* IGM *
* Copyright (C) 2017 by Computer Graphics Group, RWTH Aachen *
* www.rwth-graphics.de *
* *
\*===========================================================================*/
// Since noexcept is not supported by all compiler we define the NOEXCEPT macro here
// which does nothing if noexcept is not supported and passes its argument to noexcept
// if it is supported.
#if defined(_MSC_VER) && (_MSC_VER <= 1800)
// noexcept not supported
#define NOEXCEPT(ON)
#else
// noexcept supported
#define NOEXCEPT(ON) noexcept(ON)
#endif
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment