-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Lua FFI has a few notable differrences from regular generated C headers: * Custom prelude/epilogue with `ffi.cdef` directive. * Constants defined using `static const` syntax instead of `#define`. * Different comments format using `--` or `[[` instead of `/* */`. * Doesn't support `#include`, `#ifdef` or other macros. Lua FFI described in more details at http://luajit.org/ext_ffi.html Other changes: * Added const generics support for the structs. * Added implementation for array of any const size `N`. * Added `try_as_str` implementation for `str_ref`.
- Loading branch information
Showing
23 changed files
with
1,247 additions
and
157 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.