Again, not yet tested, but added the definitions. Now that all these
functions are done it will be easier to add tests (hard to test these
functions in isolation).
Declare all types in a section to make it easier to find them
Also renames AllocFn -> AllocFunction to make it more consistent with
CFunction (which did not look good as CFn).
Adds Lua.arith for mathematical operations on the stack. Includes a test
where each operator is used at least once. The Zig wrapper uses an enum
to ensure no invalid operators are attempted.
A few other functions are included as needed for testing, but will be
tested individually later on.
Exposes the luaopen_* and luaL_openlibs. Also adds a Ziggified wrapper
function that takes a packed struct as input to specify which libs to
load.
After looking at rlua (a rust lua library) and the lua reference manual,
it seems that these library loading functions have the possibility of
failure. Not sure how to address this yet, but have left a todo.
This first commit includes the LICENSE and the .gitignore in addition to
the beginnings of the zlua (name tbd) library.
At this stage src/zlua.zig contains a very basic wrapper around the Lua
C API. The goal is to expose every function in a Zig fashion.
The build.zig script contains a single entry point `zig build test` to
run tests.
The intended use of this library will be to include in other projects
and link as a package/library.