예제 #1
0
 static int Call(IntPtr L)
 {
     try
     {
         LuaConstructor obj = (LuaConstructor)ToLua.CheckObject(L, 1, typeof(LuaConstructor));
         return(obj.Call(L));
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
예제 #2
0
    private static int Call(IntPtr L)
    {
        int result;

        try
        {
            LuaConstructor luaConstructor = (LuaConstructor)ToLua.CheckObject(L, 1, typeof(LuaConstructor));
            result = luaConstructor.Call(L);
        }
        catch (Exception e)
        {
            result = LuaDLL.toluaL_exception(L, e, null);
        }
        return(result);
    }