Skip to content

v0.7.0 - Zig 0.16.0

Latest

Choose a tag to compare

@natecraddock natecraddock released this 03 Sep 03:23
· 36 commits to main since this release

Making a tagged release so it is more visible which commit of Ziglua is compatible with Zig 0.16.0.

Lua language updates

  • Support for Lua 5.5 (now the default)
  • Luau is updated to 0.718

Some functions that returned LuaType would return a Zig error when the returned type was LuaType.nil. These have been updated to no longer return Zig errors for nil. (c4225d8)

Raw functions have been renamed for clarity:

  • rawGetIndex -> getIndexRaw
  • rawGetPtr -> getPtrRaw
  • rawGetPtrTagged -> getPtrRawTagged
  • rawGetTable -> getTableRaw
  • rawSetIndex -> setIndexRaw
  • rawSetPtr -> setPtrRaw
  • rawSetPtrTagged -> setPtrRawTagged
  • rawSetTable -> setTableRaw
  • rawLen -> lenRaw
  • rawEqual -> equalRaw

Compile errors for unsupported functions are greatly improved.

Before
error: root source file struct 'lua_all' has no member named 'lua_cpcall'

After
error: Lua.cProtectedCall() is not supported in Lua 5.5

Other Changes

  • apicheck is now a build option (42788bf)
  • Improved documentation
  • Expose the "translate-c" C Lua API as zlua.c
  • Errors are now more descriptive instead of a generic error.LuaError for many failure types
  • New option to include additional system headers when building Lua (#192)
  • optInt and checkInt are removed. These are redundant with optInteger and checkInteger
  • ref_no has been renamed to no_ref

New Contributors

Full Changelog: 0.6.0...0.7.0