diff options
Diffstat (limited to 'c-embed-lua/notes.txt')
| -rw-r--r-- | c-embed-lua/notes.txt | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/c-embed-lua/notes.txt b/c-embed-lua/notes.txt new file mode 100644 index 0000000..b458b4f --- /dev/null +++ b/c-embed-lua/notes.txt @@ -0,0 +1,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 |
