diff options
author | Hans Hagen <pragma@wxs.nl> | 2020-08-24 20:03:53 +0200 |
---|---|---|
committer | Context Git Mirror Bot <phg@phi-gamma.net> | 2020-08-24 20:03:53 +0200 |
commit | 89f7bbac9616406b3990b8608c17c542f5fb476d (patch) | |
tree | 9e487938454fd224025391d975ae85dff85a10f8 /tex/context/base/mkiv/mlib-mpf.lua | |
parent | 4ba731dd6ff370a42984b4df050906fd9a884bc8 (diff) | |
download | context-89f7bbac9616406b3990b8608c17c542f5fb476d.tar.gz |
2020-08-24 19:49:00
Diffstat (limited to 'tex/context/base/mkiv/mlib-mpf.lua')
-rw-r--r-- | tex/context/base/mkiv/mlib-mpf.lua | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/tex/context/base/mkiv/mlib-mpf.lua b/tex/context/base/mkiv/mlib-mpf.lua index 83a585850..1e381b7c8 100644 --- a/tex/context/base/mkiv/mlib-mpf.lua +++ b/tex/context/base/mkiv/mlib-mpf.lua @@ -256,8 +256,22 @@ do return result end - function metapost.nofscriptruns() - return runs + if CONTEXTLMTXMODE > 0 then + + function metapost.nofscriptruns() + local c = mplib.getcallbackstate() + return c.count, string.format( + "%s (file: %s, text: %s, script: %s, log: %s)", + c.count, c.file, c.text, c.script, c.log + ) + end + + else + + function metapost.nofscriptruns() + return runs + end + end -- writers |