Beispiel #1
0
 static int EndSample(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 0);
         LuaProfilerExtension.EndSample();
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
Beispiel #2
0
    static int EndSample(IntPtr L)
    {
#if UNITY_EDITOR
        ToluaProfiler.AddCallRecord("LuaProfilerExtension.EndSample");
#endif
        try
        {
            ToLua.CheckArgsCount(L, 0);
            LuaProfilerExtension.EndSample();
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e));
        }
    }