1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
local function printr(...) print(...) return ... end local realload = load load = function(target, ...) if type(target) == "function" then return realload(function() return printr(target()) end, ...) else return realload(printr(target), ...) end end local cratera = require "cratera" assert(printr(cratera.load("")))()