summaryrefslogtreecommitdiff
path: root/src/luaotfload.sty
diff options
context:
space:
mode:
authorDohyun Kim <nomosnomos@gmail.com>2015-06-03 20:26:58 +0900
committerDohyun Kim <nomosnomos@gmail.com>2015-06-03 20:26:58 +0900
commit8a30fe684374af7dd25c8f9a2a97f5c01ea9d7bc (patch)
treefeb5afc1b5f8beeb1a7951dbd6b9bb9173b0afff /src/luaotfload.sty
parent7bad2f7429de8354f0105108ea495c0c6b85291b (diff)
downloadluaotfload-8a30fe684374af7dd25c8f9a2a97f5c01ea9d7bc.tar.gz
check if token register exists using allocation number
Diffstat (limited to 'src/luaotfload.sty')
-rw-r--r--src/luaotfload.sty2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/luaotfload.sty b/src/luaotfload.sty
index f183f9a..34f9a87 100644
--- a/src/luaotfload.sty
+++ b/src/luaotfload.sty
@@ -50,6 +50,7 @@
\ifcsname selectfont\endcsname
\AtBeginDocument{\@ifpackageloaded{pgfsys}{
\csname newtoks\endcsname\pgf@sys@pgf@resource@list@extgs@toks
+ \directlua{luaotfload.pgf_loaded=\the\allocationnumber}
\def\pgf@sys@pgf@resource@list@extgs{\the\pgf@sys@pgf@resource@list@extgs@toks}
\def\pgf@sys@addpdfresource@extgs@plain#1{\global\pgf@sys@pgf@resource@list@extgs@toks
\expandafter{\the\pgf@sys@pgf@resource@list@extgs@toks #1}}
@@ -60,6 +61,7 @@
\count255=\the\catcode`@\relax
\catcode`@=11\relax
\newtoks\pgf@sys@pgf@resource@list@extgs@toks
+\directlua{luaotfload.pgf_loaded=\the\allocationnumber}
\def\pgf@sys@pgf@resource@list@extgs{\the\pgf@sys@pgf@resource@list@extgs@toks}
\def\pgf@sys@addpdfresource@extgs@plain#1{\global\pgf@sys@pgf@resource@list@extgs@toks
\expandafter{\the\pgf@sys@pgf@resource@list@extgs@toks #1}}