コード例 #1
0
 static int nextLong(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 1);
         XRandom obj = (XRandom)ToLua.CheckObject <XRandom>(L, 1);
         long    o   = obj.nextLong();
         LuaDLL.tolua_pushint64(L, o);
         return(1);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }