2023-03-08 11:53:41 +08:00

11 lines
216 B
Lua

local M = {}
M.__index = function(t, k)
local res, engine = pcall(require, [[Trans.backend.]] .. k)
assert(res, [[No such Backend: ]] .. k)
t[k] = engine
return engine
end
return setmetatable(M, M)