summaryrefslogtreecommitdiff
path: root/game/debug_gfx.lua
diff options
context:
space:
mode:
Diffstat (limited to 'game/debug_gfx.lua')
-rw-r--r--game/debug_gfx.lua12
1 files changed, 12 insertions, 0 deletions
diff --git a/game/debug_gfx.lua b/game/debug_gfx.lua
new file mode 100644
index 0000000..0c20a0d
--- /dev/null
+++ b/game/debug_gfx.lua
@@ -0,0 +1,12 @@
+local M = {}
+
+M.stack = {}
+
+function M.push(fn)
+ table.insert(M.stack, fn)
+end
+function M.pop()
+ M.stack[#M.stack] = nil
+end
+
+return M \ No newline at end of file