summaryrefslogtreecommitdiffstats
path: root/resources
diff options
context:
space:
mode:
Diffstat (limited to 'resources')
-rw-r--r--resources/script/test.lua14
1 files changed, 14 insertions, 0 deletions
diff --git a/resources/script/test.lua b/resources/script/test.lua
new file mode 100644
index 0000000..f78cf13
--- /dev/null
+++ b/resources/script/test.lua
@@ -0,0 +1,14 @@
+function print_table(foo, bar)
+ for k, v in pairs(foo) do
+ print(bar .. k, v)
+
+ if type(v) == 'table' and bar .. k ~= '_G' then
+ print_table(v, bar .. k .. '.')
+ end
+ end
+end
+
+print_table(_G, '')
+
+print(getmetatable('').__index)
+print(string)