summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/luaotfload-main.lua8
-rw-r--r--src/luaotfload.sty1
2 files changed, 9 insertions, 0 deletions
diff --git a/src/luaotfload-main.lua b/src/luaotfload-main.lua
index b633ed7..36db2c3 100644
--- a/src/luaotfload-main.lua
+++ b/src/luaotfload-main.lua
@@ -266,4 +266,12 @@ load_luaotfload_module "auxiliary" --- additional high-level functionality
luaotfload.aux.start_rewrite_fontname () --- to be migrated to fontspec
+luaotfload.main = function ()
+ local starttime = os.gettimeofday ()
+ --- XXX stub
+ logreport ("both", 0, "main",
+ "initialization completed in %0.3f seconds",
+ os.gettimeofday() - starttime)
+end
+
-- vim:tw=79:sw=4:ts=4:et
diff --git a/src/luaotfload.sty b/src/luaotfload.sty
index c9c9864..ec62dad 100644
--- a/src/luaotfload.sty
+++ b/src/luaotfload.sty
@@ -45,4 +45,5 @@
\RequirePackage{luatexbase}
\fi
\RequireLuaModule{luaotfload-main}
+\directlua{local _void = luaotfload.main ()}