diff options
author | Hans Hagen <pragma@wxs.nl> | 2008-08-04 15:59:00 +0200 |
---|---|---|
committer | Hans Hagen <pragma@wxs.nl> | 2008-08-04 15:59:00 +0200 |
commit | f8ba0550d77fd6e2b307ff9dd3175fc0c613b8e2 (patch) | |
tree | ae27ca6edd0b2f1bcbe315d241b8152107d4e6a3 /tex/context/base/luat-env.tex | |
parent | 1d63a6eae86a6b78d4563ed60521449e4bf89f3c (diff) | |
download | context-f8ba0550d77fd6e2b307ff9dd3175fc0c613b8e2.tar.gz |
stable 2008.08.04 15:59
Diffstat (limited to 'tex/context/base/luat-env.tex')
-rw-r--r-- | tex/context/base/luat-env.tex | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/tex/context/base/luat-env.tex b/tex/context/base/luat-env.tex index 0b6f24663..9a0a7d9f8 100644 --- a/tex/context/base/luat-env.tex +++ b/tex/context/base/luat-env.tex @@ -93,13 +93,10 @@ \startruntimectxluacode environment = environment or { } environment.jobname = "\jobname" % tex.jobname - environment.formatname = "\contextformat" % tex.formatname environment.initex = \ifproductionrun false \else true \fi % tex.formatname == "" environment.version = "\contextversion" \stopruntimectxluacode -% no longer needed: dofile(input.find_file(texmf.instance,"luat-env.lua","tex")) - \chardef\ctxluaexecutionmode \zerocount % private % we start at 500, below this, we store predefined data (dumps) @@ -130,14 +127,14 @@ end if lua.bytecode[#1] then if environment.initex then - environment.showmessage("executing byte code " .. "#1" .. str) + % logs.report("bytecode","executing blob " .. "#1" .. str) assert(lua.bytecode[#1])() else assert(lua.bytecode[#1])() lua.bytecode[#1] = nil end else - environment.showmessage("invalid byte code " .. "#1" .. str) + % logs.report("bytecode", "invalid blob " .. "#1" .. str) end end }} @@ -152,10 +149,10 @@ lua.bytecode[\the\luabytecodecounter] = environment.luafilechunk("#1") }} -\def\ctxluafileload#1#2% load a (either not compiled) chunk at runtime +\def\ctxloadluafile#1#2% load a (either not compiled) chunk at runtime {\doifelsenothing{#2} - {\ctxlua{environment.loadlucfile("#1")}} - {\ctxlua{environment.loadlucfile("#1",#2)}}} + {\ctxlua{environment.loadluafile("#1")}} + {\ctxlua{environment.loadluafile("#1",#2)}}} \def\registerctxluafile#1#2% name version {\ifproductionrun \else |