Saturn is a playground for learning how to create C modules for Lua.
License
ponzao/saturn
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
Saturn is a playground for learning how to create C modules for Lua. Compiling: gcc -O2 -fpic -c -o saturn.o saturn.c gcc -O -shared -fpic -o saturn.so saturn.o Usage in Lua: > require("saturn") > saturn.initialize() > saturn.push(10) > print(saturn.pop()) 10 > saturn.push(12) > saturn.push(14) > print(saturn.peek()) 14 > saturn.destroy()
About
Saturn is a playground for learning how to create C modules for Lua.
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published