py_smarteval method
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,
);
}