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

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

mysql - Pass value between different pages (form) with PHP -