File

util/xpcall.lua @ 11278:c3907f05bed4

mod_storage_internal: Support query for set of IDs Based on implementation in mod_storage_memory
author Kim Alvefur <zash@zash.se>
date Tue, 12 Jan 2021 18:06:55 +0100 (2021-01-12)
parent 9561:cfc7b2f7251e
child 12975: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;
};