view util/xpcall.lua @ 10606:aa8d133f2ee7 0.11

Added tag 0.11.4 for changeset 10d6d0d91f4e
author Kim Alvefur <zash@zash.se>
date Mon, 06 Jan 2020 18:02:16 +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;
};