This commit is contained in:
baidwwy 2021-05-02 14:48:17 +08:00
parent 2705ef0894
commit 237dc618fc
1 changed files with 4 additions and 4 deletions

View File

@ -1,7 +1,7 @@
--[[
@Author : GGELUA
@Date : 2020-10-11 11:55:41
@LastEditTime : 2021-05-02 11:02:26
@LastEditTime : 2021-05-02 14:47:30
--]]
local ggelua = gge
@ -88,11 +88,11 @@ function ggetype(v)
return t
end
function ggeassert(condition,ret,level)
function ggeassert(condition,err,level)
if condition then
return ret
return condition
else
error(ret,level+1)
error(err,level+1)
end
end