summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPhilipp Gesang <phg@phi-gamma.net>2015-08-27 23:08:11 +0200
committerPhilipp Gesang <phg@phi-gamma.net>2015-08-27 23:08:11 +0200
commite05c2e2c2f72788e63da7334e054fd887bd22e70 (patch)
tree7ade6b9bec49d9aab70b4c994eedd17f746d4eab /src
parentd8dcfd9af18a15af70ec86d8e01e6d7a0f43c35c (diff)
downloadluaotfload-e05c2e2c2f72788e63da7334e054fd887bd22e70.tar.gz
[main] install stub for main initialization hook
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 ()}