mirror of
https://github.com/centau/vide.git
synced 2026-08-20 14:41:37 +00:00
11 lines
185 B
Lua
11 lines
185 B
Lua
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
|