lupa icon indicating copy to clipboard operation
lupa copied to clipboard

Add support for openresty's branch of luajit

Open synodriver opened this issue 3 years ago • 1 comments

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?

synodriver avatar Apr 02 '22 05:04 synodriver

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.

scoder avatar Aug 07 '22 21:08 scoder