low-luajit 0.4.0

Low level but safe bindings to the LuaJIT C API with no dependencies and no-std support to create Lua modules using Rust.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
package.cpath = "target/debug/examples/lib?.so;" .. package.cpath

local join = require("join_varargs")

local function foo()
	return 1, 2, 3, 4
end

print("\nTesting join()...")
print("foo() =\t\t", foo())
print("join(foo, 5, 6, 7) = ", join(foo, 5, 6, 7))
print("join(foo, foo()) = ", join(foo, foo()))