summary refs log blame commit diff stats
path: root/testc.lua
blob: 1c8f5724ea73d34dffd647a37ff648958738660d (plain) (tree)
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("")))()