mirror of
https://github.com/pocketpy/pocketpy
synced 2025-10-22 20:40:18 +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_function(vm, "hello()", hello);
|
||||||
pkpy_push_module(vm, "test");
|
pkpy_push_module(vm, "test");
|
||||||
pkpy_setattr(vm, pkpy_name("hello"));
|
pkpy_setattr(vm, pkpy_name("hello"));
|
||||||
if(pkpy_check_error(vm)){
|
// check if initialization failed
|
||||||
pkpy_clear_error(vm, NULL);
|
if(pkpy_clear_error(vm, NULL)) return NULL;
|
||||||
return NULL;
|
|
||||||
}
|
|
||||||
return "test";
|
return "test";
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user