py_smartexec method

bool py_smartexec(
  1. Pointer<Char> source,
  2. py_Ref module
)

Run a source string with smart interpretation. Example: py_newstr(py_r0(), "abc"); py_newint(py_r1(), 123); py_smartexec("print(_0, _1)", NULL, py_r0(), py_r1()); // "abc 123" will be printed.

Implementation

bool py_smartexec(
  ffi.Pointer<ffi.Char> source,
  py_Ref module,
) {
  return _py_smartexec(
    source,
    module,
  );
}