This commit is contained in:
parent
2705ef0894
commit
237dc618fc
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue