2023-03-09 19:52:22 +08:00

14 lines
219 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)