py_smarteval method

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

Evaluate a source string with smart interpretation. Example: py_newstr(py_r0(), "abc"); py_smarteval("len(_)", NULL, py_r0()); int res = py_toint(py_retval()); // res will be 3.

Implementation

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