File tree Expand file tree Collapse file tree 1 file changed +0
-15
lines changed Expand file tree Collapse file tree 1 file changed +0
-15
lines changed Original file line number Diff line number Diff line change 65
65
# include "lz4/prefix.h"
66
66
#endif
67
67
68
- // for lua
69
- #ifndef USE_LUAJIT
70
- # include "../../lua/lua/lstate.h"
71
- #endif
72
-
73
68
/* //////////////////////////////////////////////////////////////////////////////////////
74
69
* macros
75
70
*/
@@ -1418,13 +1413,8 @@ static tb_bool_t xm_engine_extract_programfiles(xm_engine_t* engine, tb_char_t c
1418
1413
1419
1414
static tb_void_t xm_engine_bind_to_lua (lua_State * lua , xm_engine_t * engine )
1420
1415
{
1421
- #ifdef USE_LUAJIT
1422
1416
lua_pushlightuserdata (lua , engine );
1423
1417
lua_setglobal (lua , "__global_engine" );
1424
- #else
1425
- global_State * g = G (lua );
1426
- g -> ud = engine ;
1427
- #endif
1428
1418
}
1429
1419
1430
1420
/* //////////////////////////////////////////////////////////////////////////////////////
@@ -1764,12 +1754,7 @@ xm_engine_ref_t xm_engine_get(lua_State* lua)
1764
1754
{
1765
1755
tb_assert_and_check_return_val (lua , tb_null );
1766
1756
1767
- #ifdef USE_LUAJIT
1768
1757
lua_getglobal (lua , "__global_engine" );
1769
1758
return (xm_engine_ref_t )lua_touserdata (lua , -1 );
1770
- #else
1771
- global_State * g = G (lua );
1772
- return (xm_engine_ref_t )g -> ud ;
1773
- #endif
1774
1759
}
1775
1760
You can’t perform that action at this time.
0 commit comments