Project/06 - External/KopiLuaInterface/src/Lua.cs
/// <summary>
/// Convert C# exceptions into Lua errors
/// </summary>
/// <returns>num of things on stack</returns>
/// <param name="e">null for no pending exception</param>
Convert C# exceptions into Lua errors
Convert C# exceptions into Lua errors
internal int SetPendingException(Exception e)
        {
            Exception caughtExcept = e;
            if (caughtExcept != null)
            {
                translator.throwError(luaState, caughtExcept);
                LuaDll.lua_pushnil(luaState);
                return 1;
            }
            else
                return 0;
        }
internal int SetPendingException ( Exception e ) { Exception caughtExcept = e ; if ( caughtExcept != null ) { translator . throwError ( luaState , caughtExcept ) ; LuaDll . lua_pushnil ( luaState ) ; return 1 ; } else return 0 ; }
Convert C# exceptions into Lua errors
Convert C# exceptions into Lua errors
num of things on stack
num of things on stack
e
Exception
null for no pending exception
null for no pending exception