Loading an external C lib into the fengari initialization
Orfen-0 opened this issue · comments
Hello, I'm trying to make lua_cmsgpack.c be available for lua operations through fengari. I was wondering if you could provide any pointers on how to achieve this as I'm not very familiar with lua & C. Basically some external lua operations that run through fengari that I depend on have as a prerequisite on the above library and I'm having trouble figuring out on how to add this.
Thank you
fengari can't magically convert C code to work in the browser.
You'd be better off finding a msgpack library written in either pure Lua or Javascript.
Try https://fperrad.frama.io/lua-MessagePack/, it is by far the best maintained msgpack library for Lua and last time I check it worked in Fengari.
Thank you both for the answers. How would I go to making this usable to lua functions outside of fengari to be interpreted correctly when the functions pass through fengari?