Saturn is a playground for learning how to create C modules for Lua.
C
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
LICENSE
README
TODO
saturn.c

README

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()