blob: b458b4fcb7fef79942894ba07729ea17e362eb42 (
plain)
1
2
3
4
5
6
7
|
You could make this byte array null terminated and use `luaL_dostring` but that
is probably not advisable.
xxd -n hi -i hi.lua | sed 's/};/,\ 0\n};/' > hi.h
Much better to use `luaL_loadbuffer` instead.
https://www.lua.org/manual/5.4/manual.html#luaL_loadbuffer
|