mirror of https://github.com/davisking/dlib.git
Added missing #include and inclusion guard
This commit is contained in:
parent
8da213ccc2
commit
0eb8296872
|
@ -1,6 +1,9 @@
|
||||||
// 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 @@
|
||||||
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__
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue