ultimatepp/bazaar/Py/Py.h
kohait 6e96b9a399 bazaar: BoostPy: means of exception catch with info, ValueCtrl: prints ErrorValue
git-svn-id: svn://ultimatepp.org/upp/trunk@3898 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2011-09-21 16:13:34 +00:00

32 lines
669 B
C++

#ifndef _Python_Python_h
#define _Python_Python_h
//this drops any auto linking/inclusion of python/python_d libs
//use this when we use those boost python prelinked dlls
//which link to python27.dll even in debug mode
#define MS_NO_COREDLL 1
#define Py_ENABLE_SHARED 1
#ifdef flagBOOSTPY
// #ifdef _DEBUG
// #define BOOST_DEBUG_PYTHON 1
// #endif
#include <boost/python.hpp>
#else
#include <Python.h>
#endif
#include <Core/Core.h>
NAMESPACE_UPP
#ifdef flagBOOSTPY
// Parses the value of the active python exception
// NOTE SHOULD NOT BE CALLED IF NO EXCEPTION
std::string parse_py_exception();
#endif
END_UPP_NAMESPACE
#endif