Skip to content

ponzao/saturn

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 

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

No packages published

Languages