コード例 #1
0
 static int ReadLong(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 1);
         Framework.LuaBuffer obj = (Framework.LuaBuffer)ToLua.CheckObject <Framework.LuaBuffer>(L, 1);
         long o = obj.ReadLong();
         LuaDLL.tolua_pushint64(L, o);
         return(1);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
コード例 #2
0
    static int ReadLong(IntPtr L)
    {
#if UNITY_EDITOR
        ToluaProfiler.AddCallRecord("Framework.LuaBuffer.ReadLong");
#endif
        try
        {
            ToLua.CheckArgsCount(L, 1);
            Framework.LuaBuffer obj = (Framework.LuaBuffer)ToLua.CheckObject <Framework.LuaBuffer>(L, 1);
            long o = obj.ReadLong();
            LuaDLL.tolua_pushint64(L, o);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e));
        }
    }