You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* feat: add pushNumeric, toNumeric and checkNumeric
These functions rely (lightly) on Zig's comptime to minimize some of the
annoying overhead of writing `@intCast` and `@floatCast` all the time by
making those builtins part of the function definition. However, since
those builtins assert in builds with runtime safety enabled, these
functions will crash the program if called with bad Lua input. More
discussion is warranted about the tradeoffs of going this route before
merging.
Resolves#172.
* fix: remove pushNumeric
* fix: checkNumeric raises a lua error
* fix: toNumeric raises a Zig error
* fix: remove pushNumeric from test, typo in toNumeric
* fix: error.IntegerCastFailed -> error.Overflow
* fix: add test for checkNumeric
* fix: error message inconsistency outside of test control
* fix: toStringEx not available in 5.1
0 commit comments