示例#1
0
 /*
  * Pushes the function into the Lua stack
  */
 internal void push(IntPtr luaState)
 {
     if (reference != 0)
     {
         LuaDLL.lua_getref(luaState, reference);
     }
     else
     {
         interpreter.pushCSFunction(function);
     }
 }
示例#2
0
 /*
  * Pushes the function into the Lua stack
  */
 internal void push(KopiLua.LuaState luaState)
 {
     if (reference != 0)
     {
         LuaDll.lua_getref(luaState, reference);
     }
     else
     {
         interpreter.pushCSFunction(function);
     }
 }