From af3acfbb80bca7447af9fe0d4a34cf860163b218 Mon Sep 17 00:00:00 2001 From: SoniEx2 Date: Mon, 15 Apr 2019 22:38:40 -0300 Subject: Add stuff that doesn't work --- testc.lua | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 testc.lua (limited to 'testc.lua') 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("")))() -- cgit 1.4.1