We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dd116a8 commit d4a5d7bCopy full SHA for d4a5d7b
1 file changed
src/binding-factory.ts
@@ -168,6 +168,7 @@ const lauxBindings: Record<string, lauxBindingFactoryFunc> = {
168
const ptr = luaGlue.allocateUTF8(s) as unknown;
169
return (this as LauxLib).luaL_loadbuffer(L, ptr as string, luaGlue.lengthBytesUTF8(s), s);
170
},
171
+ // Note that s has a "number" type, so we can pass a raw pointer
172
luaL_loadbuffer: luaGlue.cwrap("luaL_loadbuffer", "number", ["number", "number", "number", "string"]),
173
luaL_newstate: luaGlue.cwrap("lua_open", "number", []),
174
}
0 commit comments