Commit 14355a48 authored by Jack's avatar Jack
Browse files

fixed api add which should return the table

parent e9bb65c7
......@@ -19,6 +19,7 @@ function add(t, v)
if t ~= nil then
t[#t+1] = v
end
return t
end
function foreach(c, f)
......@@ -68,6 +69,6 @@ function coresume(f)
coroutine.resume(f)
end
function costatus()
function costatus(f)
return coroutine.status(f)
end
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment