aboutsummaryrefslogtreecommitdiffstats
path: root/util/xpcall.lua
blob: d2fc50118899a9446a43dd50095285d5e42e88d8 (plain)
1
2
3
4
5
6
7
8
9
local xpcall = xpcall;

if select(2, xpcall(function (x) return x end, function () end,  "test")) ~= "test" then
	xpcall = require"util.compat".xpcall;
end

return {
	xpcall = xpcall;
};