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

The FFI library #46

Open
matiasah opened this issue Oct 10, 2014 · 6 comments
Open

The FFI library #46

matiasah opened this issue Oct 10, 2014 · 6 comments

Comments

@matiasah
Copy link

Hello, UniLua has most of the standard libraries from Lua (they're understandable because it's documentation can be found on lua.org), but the FFI library used in UniLua is quite different from LuaFFI, can you provide some documentation to it or at least some examples of the usage?

@xebecnan
Copy link
Owner

the FFI library is experimental, and it is not recommended to use it. so
right now there is no document.

On Fri, Oct 10, 2014 at 6:56 PM, Starkkz [email protected] wrote:

Hello, UniLua has most of the standard libraries from Lua (they're
understandable because it's documentation can be found on lua.org), but
the FFI library used in UniLua is quite different from LuaFFI, can you
provide some documentation to it or at least some examples of the usage?


Reply to this email directly or view it on GitHub
#46.

@matiasah
Copy link
Author

Hello again, I'm not actually using UniLua for development but I know someone that does, that means the only way we could mod UniLua is either with DLL(s) or FFI. The DLL way seems too complicated for me, so I just wanted to come with three questions.
1.- The FFI library might lead the program to crash if not used correctly, is it functional if its used correctly?
2.- Is the FFI library integrated by default whenever you load the base libraries?
3.- I saw one of the Lua coded files (ffi.lua) being requiring a plain .cs file, I'm not used to C# but from what I understood they're code files and that means you can load it as if it was a dynamic library, am I wrong?

@gillonline
Copy link

hi Starkkz, I think the best way using UniLua is making implementation of API which you need. You could find a example here.

@matiasah
Copy link
Author

matiasah commented Feb 3, 2015

Hmmmm.... Link?

@matiasah
Copy link
Author

matiasah commented Feb 3, 2015

I'm a bit confused for the language used there, is libfoo.cs included in the binary (as well as a module name) or just a file that can be loaded from the executable's folder?

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

No branches or pull requests

3 participants