int rtn_is_safe_for_probed_replacement_ex (lua_State *L) { RTN* v1 = check_rtn(L,1); PROBE_MODE v2 = lookup_string_to_probe_mode(L,lua_tostring(L,2)); BOOL r = RTN_IsSafeForProbedReplacementEx(*v1,v2); lua_pushboolean(L, r); return 1; }
PyObject* Python_RTN_IsSafeForProbedReplacementEx(PyObject* self, PyObject* args) { PyObject* rtn; PyObject* mode; PyArg_ParseTuple(args, "L|L", &rtn, &mode); RTN rtn_object = *(RTN*) rtn; PROBE_MODE mode_object = *(PROBE_MODE*) mode; if (RTN_IsSafeForProbedReplacementEx(rtn_object, mode_object)) { return Py_BuildValue("O", Py_True); } else { return Py_BuildValue("O", Py_False); } }