annotate DEPENDENCIES/generic/include/boost/python/exec.hpp @ 125:34e428693f5d vext

Vext -> Repoint
author Chris Cannam
date Thu, 14 Jun 2018 11:15:39 +0100
parents 2665513ce2d3
children
rev   line source
Chris@16 1 // Copyright Stefan Seefeld 2005.
Chris@16 2 // Distributed under the Boost Software License, Version 1.0. (See
Chris@16 3 // accompanying file LICENSE_1_0.txt or copy at
Chris@16 4 // http://www.boost.org/LICENSE_1_0.txt)
Chris@16 5 #ifndef EXEC_SS20050616_HPP
Chris@16 6 # define EXEC_SS20050616_HPP
Chris@16 7
Chris@16 8 # include <boost/python/object.hpp>
Chris@16 9 # include <boost/python/str.hpp>
Chris@16 10
Chris@16 11 namespace boost
Chris@16 12 {
Chris@16 13 namespace python
Chris@16 14 {
Chris@16 15
Chris@16 16 // Evaluate python expression from str.
Chris@16 17 // global and local are the global and local scopes respectively,
Chris@16 18 // used during evaluation.
Chris@16 19 object
Chris@16 20 BOOST_PYTHON_DECL
Chris@16 21 eval(str string, object global = object(), object local = object());
Chris@16 22
Chris@16 23 // Execute an individual python statement from str.
Chris@16 24 // global and local are the global and local scopes respectively,
Chris@16 25 // used during execution.
Chris@16 26 object
Chris@16 27 BOOST_PYTHON_DECL
Chris@16 28 exec_statement(str string, object global = object(), object local = object());
Chris@16 29
Chris@16 30 // Execute python source code from str.
Chris@16 31 // global and local are the global and local scopes respectively,
Chris@16 32 // used during execution.
Chris@16 33 object
Chris@16 34 BOOST_PYTHON_DECL
Chris@16 35 exec(str string, object global = object(), object local = object());
Chris@16 36
Chris@16 37 // Execute python source code from file filename.
Chris@16 38 // global and local are the global and local scopes respectively,
Chris@16 39 // used during execution.
Chris@16 40 object
Chris@16 41 BOOST_PYTHON_DECL
Chris@16 42 exec_file(str filename, object global = object(), object local = object());
Chris@16 43
Chris@16 44 }
Chris@16 45 }
Chris@16 46
Chris@16 47 #endif