This commit is contained in:
blueloveTH 2023-06-21 03:15:55 +08:00
parent 3148dab556
commit 43746e0a43
2 changed files with 0 additions and 10 deletions

View File

@ -555,11 +555,3 @@ bool pkpy_eval(pkpy_vm* vm_handle, const char* code) {
ERRHANDLER_CLOSE
return true;
}
void* pkpy_get_id(pkpy_vm* vm_handle, int index) {
CVM* vm = (CVM*) vm_handle;
index = lua_to_cstack_index(index, vm->c_data->size());
PyObject* o = vm->c_data->at(index);
if(is_tagged(o)) return nullptr;
return (void*) o;
}

View File

@ -114,8 +114,6 @@ PK_EXPORT bool pkpy_getattr(pkpy_vm*, const char* name);
PK_EXPORT bool pkpy_setattr(pkpy_vm*, const char* name);
PK_EXPORT bool pkpy_eval(pkpy_vm*, const char* source);
PK_EXPORT void* pkpy_get_id(pkpy_vm*, int index);
#ifdef __cplusplus
}
#endif