mirror of
https://github.com/pocketpy/pocketpy
synced 2025-10-22 12:30:19 +00:00
...
This commit is contained in:
parent
9a7fabeb75
commit
74f4575778
@ -13,9 +13,7 @@ const char* pkpy_module__init__(pkpy_vm* vm, const char* version){
|
||||
pkpy_push_function(vm, "hello()", hello);
|
||||
pkpy_push_module(vm, "test");
|
||||
pkpy_setattr(vm, pkpy_name("hello"));
|
||||
if(pkpy_check_error(vm)){
|
||||
pkpy_clear_error(vm, NULL);
|
||||
return NULL;
|
||||
}
|
||||
// check if initialization failed
|
||||
if(pkpy_clear_error(vm, NULL)) return NULL;
|
||||
return "test";
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user