From c30a841cef093918b475e0ea95ecf9fc9f30697d Mon Sep 17 00:00:00 2001 From: Marius Date: Tue, 17 Jul 2012 13:16:14 +0300 Subject: beta 2012.07.17 00:23 --- tex/context/base/luat-sto.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'tex/context/base/luat-sto.lua') 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")) -- cgit v1.2.3