/[adonthell]/adonthell/src/python/python.h
ViewVC logotype

Diff of /adonthell/src/python/python.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.15 by Mithander, Fri Oct 7 22:17:27 2005 UTC revision 1.16 by ksterker, Sun Oct 9 07:38:40 2005 UTC
# Line 96  namespace python Line 96  namespace python
96       * This is a new reference that needs to be Py_DECREF'd when done.       * This is a new reference that needs to be Py_DECREF'd when done.
97       * @param statement Python code to execute.       * @param statement Python code to execute.
98       * @param start one of Py_eval_input, Py_file_input or Py_single_input       * @param start one of Py_eval_input, Py_file_input or Py_single_input
99             * @param globals the global dictionary for the Python interpreter.
100       * @return \b result on success, \b NULL otherwise.       * @return \b result on success, \b NULL otherwise.
101       */       */
102      PyObject* run_string (const std::string & statement, const int & start = Py_eval_input);      PyObject* run_string (const std::string & statement, const int & start = Py_eval_input, PyObject *globals = NULL);
103            
104      /**      /**
105       * Execute a python statement and return success.       * Execute a python statement and return success.

Legend:
Removed from v.1.15  
changed lines
  Added in v.1.16

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26