diff options
author | Marius <mariausol@gmail.com> | 2012-07-17 13:16:14 +0300 |
---|---|---|
committer | Marius <mariausol@gmail.com> | 2012-07-17 13:16:14 +0300 |
commit | c30a841cef093918b475e0ea95ecf9fc9f30697d (patch) | |
tree | 861e4f6cf85f9ad0b0abe5b501a0bac21a6f63ab /tex/context/base/luat-sto.lua | |
parent | a13773bf241efe852de82ad42770e2abcc3ddf54 (diff) | |
download | context-c30a841cef093918b475e0ea95ecf9fc9f30697d.tar.gz |
beta 2012.07.17 00:23
Diffstat (limited to 'tex/context/base/luat-sto.lua')
-rw-r--r-- | tex/context/base/luat-sto.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tex/context/base/luat-sto.lua b/tex/context/base/luat-sto.lua index 30bb7d5bb..860aa1121 100644 --- a/tex/context/base/luat-sto.lua +++ b/tex/context/base/luat-sto.lua @@ -13,6 +13,7 @@ local gmatch, format, write_nl = string.gmatch, string.format, texio.write_nl local serialize, concat, sortedhash = table.serialize, table.concat, table.sortedhash local bytecode = lua.bytecode +local trace_storage = false local report_storage = logs.reporter("system","storage") storage = storage or { } @@ -63,7 +64,7 @@ local function dump() max = max + 1 if trace_storage then report_storage('saving %s in slot %s',message,max) - c = c + 1 ; code[c] = format("report_storage('restoring %s from slot %s')",message,max) + c = c + 1 ; code[c] = format("print('restoring %s from slot %s')",message,max) end c = c + 1 ; code[c] = serialize(original,name) bytecode[max] = loadstring(concat(code,"\n")) |