diff options
author | SoniEx2 <endermoneymod@gmail.com> | 2019-04-15 22:38:40 -0300 |
---|---|---|
committer | SoniEx2 <endermoneymod@gmail.com> | 2019-04-15 22:38:40 -0300 |
commit | af3acfbb80bca7447af9fe0d4a34cf860163b218 (patch) | |
tree | a8cf3a183ea28f56156f6d7d7cf0580b2c240283 /testc.lua | |
parent | e5e653340114025675a0e4c088733111413af452 (diff) |
Add stuff that doesn't work
Diffstat (limited to 'testc.lua')
-rw-r--r-- | testc.lua | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/testc.lua b/testc.lua new file mode 100644 index 0000000..1c8f572 --- /dev/null +++ b/testc.lua @@ -0,0 +1,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("")))() |