view util/xpcall.lua @ 10692:a0480ee2233a

README: Update link to web chat At some point the web chat moved to /chat and then to this subdomain
author Kim Alvefur <zash@zash.se>
date Sun, 15 Mar 2020 20:35:07 +0100
parents cfc7b2f7251e
children d10957394a3c
line wrap: on
line source

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;
};