Esempio n. 1
0
 static int BitAnd(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 2);
         uint arg0 = (uint)LuaDLL.luaL_checknumber(L, 1);
         uint arg1 = (uint)LuaDLL.luaL_checknumber(L, 2);
         uint o    = LuaHelper.BitAnd(arg0, arg1);
         LuaDLL.lua_pushnumber(L, o);
         return(1);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }