summary refs log tree commit diff stats
path: root/testc.lua
diff options
context:
space:
mode:
authorSoniEx2 <endermoneymod@gmail.com>2019-04-15 22:38:40 -0300
committerSoniEx2 <endermoneymod@gmail.com>2019-04-15 22:38:40 -0300
commitaf3acfbb80bca7447af9fe0d4a34cf860163b218 (patch)
treea8cf3a183ea28f56156f6d7d7cf0580b2c240283 /testc.lua
parente5e653340114025675a0e4c088733111413af452 (diff)
Add stuff that doesn't work
Diffstat (limited to 'testc.lua')
-rw-r--r--testc.lua17
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("")))()