mirror of
https://github.com/pocketpy/pocketpy
synced 2025-10-22 12:30:19 +00:00
Update pocketpy_c.cpp
This commit is contained in:
parent
e982a4e60b
commit
e6ca624ea2
@ -171,7 +171,12 @@ static void propagate_if_errored(CVM* vm, ValueStackImpl<PKPY_STACK_SIZE>* store
|
||||
}
|
||||
|
||||
PyObject* c_function_wrapper(VM* vm, ArgsView args) {
|
||||
LuaStyleFuncC f = py_cast<NativeFunc&>(vm, args[-2])._lua_f;
|
||||
LuaStyleFuncC f;
|
||||
if(args[-1] != PY_NULL){
|
||||
f = _py_cast<NativeFunc&>(vm, args[-1])._lua_f;
|
||||
} else {
|
||||
f = _py_cast<NativeFunc&>(vm, args[-2])._lua_f;
|
||||
}
|
||||
CVM* cvm = (CVM*) vm;
|
||||
|
||||
//setup c stack
|
||||
|
Loading…
x
Reference in New Issue
Block a user