Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
dlib
Commits
0eb82968
Commit
0eb82968
authored
Sep 01, 2013
by
Davis King
Browse files
Added missing #include and inclusion guard
parent
8da213cc
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
tools/python/src/pyassert.h
tools/python/src/pyassert.h
+6
-0
No files found.
tools/python/src/pyassert.h
View file @
0eb82968
// Copyright (C) 2013 Davis E. King (davis@dlib.net)
// License: Boost Software License See LICENSE.txt for the full license.
#ifndef DLIB_PYaSSERT_H__
#define DLIB_PYaSSERT_H__
#include <boost/python.hpp>
#define pyassert(_exp,_message) \
{if ( !(_exp) ) \
...
...
@@ -8,3 +11,6 @@
PyErr_SetString( PyExc_ValueError, _message ); \
boost::python::throw_error_already_set(); \
}}
#endif // DLIB_PYaSSERT_H__
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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