view util/xpcall.lua @ 9897:a471d4cfec5e

net/server_event: fix typo in comment
author Maxime “pep” Buquet <pep@bouah.net>
date Sat, 23 Mar 2019 01:57:12 +0000
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;
};