pocketlang/tests/native/dl/main.pk
Thakee Nathees bd61e77593 extension module implemented
now it's possible to import a dynamic libray (*.dll, *.so) in
a pocket script.
2022-05-30 22:55:22 +05:30

10 lines
201 B
Plaintext

## Import the native extension module.
## from either mylib.so, or mylib.dll
import mylib
if __name__ == "__main__"
## Call the registered function.
print('mylib.hello() = ${mylib.hello()}')
end