We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b93287d commit 6a75ad1Copy full SHA for 6a75ad1
src/lib.zig
@@ -2876,8 +2876,9 @@ pub const Lua = struct {
2876
}
2877
2878
/// Converts any Lua value at the given index into a string in a reasonable format
2879
+ /// Uses the __tostring metamethod if available
2880
/// See https://www.lua.org/manual/5.4/manual.html#luaL_tolstring
- pub fn toBytesFmt(lua: *Lua, index: i32) [:0]const u8 {
2881
+ pub fn toStringEx(lua: *Lua, index: i32) [:0]const u8 {
2882
var length: usize = undefined;
2883
const ptr = c.luaL_tolstring(lua.state, index, &length);
2884
return ptr[0..length :0];
0 commit comments