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

Add support for openresty's branch of luajit #209

Open
synodriver opened this issue Apr 2, 2022 · 1 comment
Open

Add support for openresty's branch of luajit #209

synodriver opened this issue Apr 2, 2022 · 1 comment

Comments

@synodriver
Copy link
Contributor

I've created a fork with that support, but have no idea whether to realease a new package or just merge to upstream. Would you consider adding some new apis for that?

@scoder
Copy link
Owner

scoder commented Aug 7, 2022

I wouldn't oppose it,as long as it doesn't get in the way of me (as a maintainer) and users who do not make use of this.

However, the generated C code still needs to compile with the normal Lua and LuaJIT APIs. That means that, in the "normal" case, you'll have to 1) mark the new functionality as unavailable and 2) find replacement C macros for the API functions.

Note that you don't need cpdef unless you're making module-internal calls to those functions/methods. Normal def functions will do.

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

2 participants