Software /
code /
prosody
File
util/xpcall.lua @ 13148:c6f46f33cecf
mod_storage_sql: Record all SQLite3 compile options for potential use
Knowing what features are available could be useful for future
experiments. For example, with the JSON module or full text search.
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sat, 10 Jun 2023 14:01:56 +0200 |
parent | 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"prosody.util.compat".xpcall; end return { xpcall = xpcall; };