lua - luajit mode with C API -
i'm starting @ luajit.
luajit has function set mode
lua_api int luajit_setmode(lua_state *l, int idx, int mode); is there way actual mode ?
thanks
i'm not sure can that, , i'm not sure if option you, edit src/lj_dispatch.c, , add (untested):
int luajit_getmode(lua_state *l, int idx) { global_state *g = g(l); return g2j(g)->flags; } and add definition luajit.h. don't think pragmatic, in spirit of const_cast see no reason not work. suggest avoiding need though...
Comments
Post a Comment