Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
D
dlib
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
钟尚武
dlib
Commits
0eb82968
Commit
0eb82968
authored
Sep 01, 2013
by
Davis King
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added missing #include and inclusion guard
parent
8da213cc
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
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)
// Copyright (C) 2013 Davis E. King (davis@dlib.net)
// License: Boost Software License See LICENSE.txt for the full license.
// 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) \
#define pyassert(_exp,_message) \
{if ( !(_exp) ) \
{if ( !(_exp) ) \
...
@@ -8,3 +11,6 @@
...
@@ -8,3 +11,6 @@
PyErr_SetString( PyExc_ValueError, _message ); \
PyErr_SetString( PyExc_ValueError, _message ); \
boost::python::throw_error_already_set(); \
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