public static Register ( LuaState L ) : void | ||
L | LuaState | |
Результат | void |
static int OpenReflectionLibs(IntPtr L) { try { LuaState state = LuaState.Get(L); state.BeginModule(null); state.BeginModule("LuaInterface"); LuaInterface_LuaMethodWrap.Register(state); LuaInterface_LuaPropertyWrap.Register(state); LuaInterface_LuaFieldWrap.Register(state); LuaInterface_LuaConstructorWrap.Register(state); state.EndModule(); state.EndModule(); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
private static int OpenReflectionLibs(IntPtr L) { int result; try { LuaState luaState = LuaState.Get(L); luaState.BeginModule(null); luaState.BeginModule("LuaInterface"); LuaInterface_LuaMethodWrap.Register(luaState); LuaInterface_LuaPropertyWrap.Register(luaState); LuaInterface_LuaFieldWrap.Register(luaState); LuaInterface_LuaConstructorWrap.Register(luaState); luaState.EndModule(); luaState.EndModule(); result = 0; } catch (Exception e) { result = LuaDLL.toluaL_exception(L, e, null); } return(result); }