diff options
author | John Wiegley <johnw@newartisans.com> | 2004-09-25 03:30:23 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2004-09-25 03:30:23 -0400 |
commit | 66bc51db6d17d9fd01baed7ae85099094a00c091 (patch) | |
tree | 533d4389dcf13a90d701ea9043cd0e5d2bdccc36 /python.h | |
parent | 3a3227298dcd4faabd93e6f4bcaede10f29b13fd (diff) | |
download | fork-ledger-66bc51db6d17d9fd01baed7ae85099094a00c091.tar.gz fork-ledger-66bc51db6d17d9fd01baed7ae85099094a00c091.tar.bz2 fork-ledger-66bc51db6d17d9fd01baed7ae85099094a00c091.zip |
added pysample.dat, which provides a more realistic example of using Python
Diffstat (limited to 'python.h')
-rw-r--r-- | python.h | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -1,6 +1,8 @@ #ifndef _PYTHON_H #define _PYTHON_H +#include "error.h" + #include <boost/python.hpp> using namespace boost::python; @@ -47,6 +49,7 @@ inline void python_eval(std::istream& in) } catch(const boost::python::error_already_set&) { PyErr_Print(); + throw error("Evaluating Python code"); } } |