|
Last change
on this file since 35 was
29,
checked in by landauf, 17 years ago
|
|
updated boost from 1_33_1 to 1_34_1
|
|
File size:
1.0 KB
|
| Rev | Line | |
|---|
| [29] | 1 | // Copyright Stefan Seefeld 2005. |
|---|
| 2 | // Distributed under the Boost Software License, Version 1.0. (See |
|---|
| 3 | // accompanying file LICENSE_1_0.txt or copy at |
|---|
| 4 | // http://www.boost.org/LICENSE_1_0.txt) |
|---|
| 5 | #ifndef EXEC_SS20050616_HPP |
|---|
| 6 | # define EXEC_SS20050616_HPP |
|---|
| 7 | |
|---|
| 8 | # include <boost/python/object.hpp> |
|---|
| 9 | # include <boost/python/str.hpp> |
|---|
| 10 | |
|---|
| 11 | namespace boost |
|---|
| 12 | { |
|---|
| 13 | namespace python |
|---|
| 14 | { |
|---|
| 15 | |
|---|
| 16 | // Evaluate python expression from str. |
|---|
| 17 | // global and local are the global and local scopes respectively, |
|---|
| 18 | // used during evaluation. |
|---|
| 19 | object |
|---|
| 20 | BOOST_PYTHON_DECL |
|---|
| 21 | eval(str string, object global = object(), object local = object()); |
|---|
| 22 | |
|---|
| 23 | // Execute python source code from str. |
|---|
| 24 | // global and local are the global and local scopes respectively, |
|---|
| 25 | // used during execution. |
|---|
| 26 | object |
|---|
| 27 | BOOST_PYTHON_DECL |
|---|
| 28 | exec(str string, object global = object(), object local = object()); |
|---|
| 29 | |
|---|
| 30 | // Execute python source code from file filename. |
|---|
| 31 | // global and local are the global and local scopes respectively, |
|---|
| 32 | // used during execution. |
|---|
| 33 | object |
|---|
| 34 | BOOST_PYTHON_DECL |
|---|
| 35 | exec_file(str filename, object global = object(), object local = object()); |
|---|
| 36 | |
|---|
| 37 | } |
|---|
| 38 | } |
|---|
| 39 | |
|---|
| 40 | #endif |
|---|
Note: See
TracBrowser
for help on using the repository browser.