Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Loading an external C lib into the fengari initialization #190

Open
Orfen-0 opened this issue Mar 22, 2021 · 3 comments
Open

Loading an external C lib into the fengari initialization #190

Orfen-0 opened this issue Mar 22, 2021 · 3 comments
Labels

Comments

@Orfen-0
Copy link

Orfen-0 commented Mar 22, 2021

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

@daurnimator
Copy link
Member

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.

@catwell
Copy link

catwell commented Mar 23, 2021

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.

@Orfen-0
Copy link
Author

Orfen-0 commented Mar 24, 2021

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants