Commit Graph

21 Commits

Author SHA1 Message Date
Nathan Craddock
a8e6f28d09 docs: rename library to module
Just keeping with the times in terminology
2023-02-15 15:43:43 -07:00
Nathan Craddock
5c843b5cf9 docs: update readme and docs for Zig 0.10.0 2022-10-27 21:02:06 -06:00
Nathan Craddock
932db5cd57 feat: add an option to link as a shared library
Fixes the linking code, and adds a new option to the build function to
link Ziglua as a shared library rather than as a static library. This is
for the use case of creating shared modules to require at runtime in
Lua.
2022-10-20 16:45:34 -06:00
Nathan Craddock
942afe836a feat: restructure and add Lua 5.3, 5.2, and 5.1
Restructures the source layout and adds three new versions of Lua.
Documentation is still incomplete at this point, but all four supported
versions are well tested.
2022-10-03 20:24:17 -06:00
Nathan Craddock
09516fddd9 docs: small updates to the docs 2022-09-17 14:06:30 -06:00
Nathan Craddock
0582f77d36
refactor: remove C from pushFunction and pushClosure
It doesn't add any value to mention C
2022-06-19 20:40:23 -06:00
Nathan Craddock
0b728f9175
refactor: remove toNumberX and toIntegerX
Removes these functions in favor of toNumber and toInteger. These
remaining functions error if the value cannot be returned as a number.

This makes the API safer, while also being a bit more cumbersome. But it
is better to be explicit than use the old toNumber and not know it
returns 0 silently on fail.
2022-06-19 10:35:08 -06:00
Nathan Craddock
5ac473ded2
refactor: rename KContext -> Context 2022-06-18 22:28:22 -06:00
Nathan Craddock
4ce0da4919
docs: update status 2022-06-18 22:25:55 -06:00
Nathan Craddock
21de06cb4e
refactor: tidy return values and cleanup TODOs 2022-06-18 21:52:22 -06:00
Nathan Craddock
db385a43d3
tests: garbage collection (gc)
Tests the gc function with all of it's variants
2022-06-11 21:48:11 -06:00
Nathan Craddock
0fa25e79a0
docs: fix example code 2022-06-11 16:46:01 -06:00
Nathan Craddock
f9a62e70da
docs: update status, add example code, and describe differences 2022-06-11 16:44:53 -06:00
Nathan Craddock
31ebb27710
refactor: rename pCall -> protectedCall
Zig intends to communicate intent precisely. So let's make the function
name more clear.
2022-06-07 09:10:40 -06:00
Nathan Craddock
2a1d25b49a
docs: update with more info on the ziglua structure 2022-06-06 21:30:40 -06:00
Nathan Craddock
f619696f3c
docs: add more details on API wrapper 2022-06-06 09:20:15 -06:00
Nathan Craddock
5fa582d886
docs: update docs on tointegerx and tonumberx 2022-06-05 00:26:18 -06:00
Nathan Craddock
ad1b4726d4
docs: update library documentation with examples 2022-06-03 19:50:57 -06:00
Nathan Craddock
b766c278b8
docs: note on toString 2022-06-03 19:30:27 -06:00
Nathan Craddock
9bc8f32b53
docs: update api coverage 2022-06-03 12:06:29 -06:00
Nathan Craddock
ed6a5906b6
docs: add readme.md and docs.md 2022-06-02 16:03:25 -06:00