Rework dumping functions
authorShadowNinja <shadowninja@minetest.net>
Fri, 9 May 2014 03:56:36 +0000 (23:56 -0400)
committerShadowNinja <shadowninja@minetest.net>
Sat, 24 May 2014 21:32:42 +0000 (17:32 -0400)
commit882e12f8ab5307a7814a0b6646ef7db9b448c236
tree726db008312cfff9906388a97d00a4c0e5ffd755
parent660e63688761dc08558de030a53464d39a6ec85f
Rework dumping functions

Changes:
  * Add comments to explain the dumping code
  * Add support for dumping values of any type (as '<' <type> '>')
  * Add support for tables as keys in dump2()
  * Make dump2() return it's result (like dump()) rather than printing it
  * Simplify and optimize function serialization via serialize()
builtin/common/misc_helpers.lua
builtin/common/serialize.lua