mirror of
https://github.com/pocketpy/pocketpy
synced 2025-10-20 11:30:18 +00:00
...
This commit is contained in:
parent
4ccc4cb138
commit
2742414fa7
@ -2,5 +2,5 @@ set -e
|
|||||||
|
|
||||||
FLAGS="-std=c11 -Iinclude -O0 -Wfatal-errors -g -DDEBUG -DPK_ENABLE_OS=1"
|
FLAGS="-std=c11 -Iinclude -O0 -Wfatal-errors -g -DDEBUG -DPK_ENABLE_OS=1"
|
||||||
|
|
||||||
clang $FLAGS -shared -fPIC src2/hello.c -o libhello.dylib -undefined dynamic_lookup
|
# link libpocketpy.dylib
|
||||||
|
clang $FLAGS -shared -fPIC src2/hello.c -o libhello.dylib -L. -lpocketpy
|
||||||
|
@ -20,7 +20,7 @@ static VM pk_default_vm;
|
|||||||
static VM* pk_all_vm[16];
|
static VM* pk_all_vm[16];
|
||||||
|
|
||||||
void py_initialize() {
|
void py_initialize() {
|
||||||
if(!pk_current_vm){
|
if(pk_current_vm){
|
||||||
c11__abort("py_initialize() can only be called once!");
|
c11__abort("py_initialize() can only be called once!");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user