Added missing #include and inclusion guard

This commit is contained in:
Davis King 2013-09-01 13:05:29 -04:00
parent 8da213ccc2
commit 0eb8296872
1 changed files with 6 additions and 0 deletions

View File

@ -1,6 +1,9 @@
// 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__