Compare commits

...

2 Commits

Author SHA1 Message Date
8a1d772bb4
util: add traceback function that i stole
https://discord.com/channels/805969743466332191/827848307480461313/1120318388540022794

it was in a fucking shitpost channel
thanks again @dragekk this is probably the fifth thing i've stolen from
you
2023-06-25 01:33:14 -04:00
75c94df180
timers: fix documentation 2023-06-25 01:32:21 -04:00
2 changed files with 5 additions and 1 deletions

View File

@ -33,7 +33,7 @@ do
--it can be overwritten.
---@param ticks integer Number of ticks to wait
---@param next function Callback to run
---@param name function Name of callback
---@param name string Name of callback
function namedWait(ticks, next, name)
-- main difference, this will overwrite an existing timer with
-- the same name

View File

@ -204,4 +204,8 @@ local function recurseModelGroup(group)
end
util.recurseModelGroup=recurseModelGroup
function util.traceback()
return ({pcall(function() error("", 4) end)})[2]:match("stack traceback:.+$")
end
return util