summaryrefslogtreecommitdiff
path: root/src/fontloader/runtime/fontloader-basics-gen.lua
diff options
context:
space:
mode:
authorPhilipp Gesang <phg@phi-gamma.net>2015-03-11 07:46:44 +0100
committerPhilipp Gesang <phg@phi-gamma.net>2015-03-11 07:46:44 +0100
commitf070e8b5b193c0ce686d2e6448b53338a499aecf (patch)
tree637122d22c56e6ad3a0b3a1a47ae2a2b9c46126b /src/fontloader/runtime/fontloader-basics-gen.lua
parent380989f0de1f2aa9a8d0a0856de1b1e09321d1e5 (diff)
downloadluaotfload-f070e8b5b193c0ce686d2e6448b53338a499aecf.tar.gz
[fontloader] sync with Context as of 2015-03-11
Diffstat (limited to 'src/fontloader/runtime/fontloader-basics-gen.lua')
-rw-r--r--src/fontloader/runtime/fontloader-basics-gen.lua9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/fontloader/runtime/fontloader-basics-gen.lua b/src/fontloader/runtime/fontloader-basics-gen.lua
index e7cdc7b..c4d6536 100644
--- a/src/fontloader/runtime/fontloader-basics-gen.lua
+++ b/src/fontloader/runtime/fontloader-basics-gen.lua
@@ -15,8 +15,13 @@ local dummyfunction = function()
end
local dummyreporter = function(c)
- return function(...)
- (texio.reporter or texio.write_nl)(c .. " : " .. string.formatters(...))
+ return function(f,...)
+ local r = texio.reporter or texio.write_nl
+ if f then
+ r(c .. " : " .. string.formatters(f,...))
+ else
+ r("")
+ end
end
end