view util/xpcall.lua @ 14162:5011e4bc95d7 0.12

Added tag 0.12.6 for changeset 4bbb17445ed9
author Kim Alvefur <zash@zash.se>
date Wed, 29 Apr 2026 21:40:17 +0200
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;
};