LuaInterface.LuaDLL.lua_gettop C# (CSharp) Method

lua_gettop() private method

private lua_gettop ( IntPtr luaState ) : int
luaState System.IntPtr
return int
        public static extern int lua_gettop(IntPtr luaState);
        [DllImport(LUADLL, CallingConvention = CallingConvention.Cdecl)]

Usage Example

示例#1
0
        static int EndSample(IntPtr L)
        {
            try
            {
                int count = LuaDLL.lua_gettop(L);

                if (count == 0)
                {
                    MikuLuaProfiler.LuaProfiler.EndSample();
                    return(0);
                }
                else if (count == 1)
                {
                    System.IntPtr arg0 = ToLua.CheckIntPtr(L, 1);
                    MikuLuaProfiler.LuaProfiler.EndSample(arg0);
                    return(0);
                }
                else
                {
                    return(LuaDLL.luaL_throw(L, "invalid arguments to method: MikuLuaProfiler.LuaProfiler.EndSample"));
                }
            }
            catch (Exception e)
            {
                return(LuaDLL.toluaL_exception(L, e));
            }
        }
All Usage Examples Of LuaInterface.LuaDLL::lua_gettop
LuaDLL