mirror of
https://github.com/centau/vide.git
synced 2026-08-20 14:41:37 +00:00
Initial commit
This commit is contained in:
commit
cb002f4f27
50 changed files with 4666 additions and 0 deletions
11
src/throw.luau
Normal file
11
src/throw.luau
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
local function throw(msg: string)
|
||||
local stack = 1
|
||||
|
||||
while debug.info(stack, "s") == debug.info(1, "s") do
|
||||
stack += 1
|
||||
end
|
||||
|
||||
error(msg, stack)
|
||||
end
|
||||
|
||||
return throw
|
||||
Loading…
Add table
Add a link
Reference in a new issue