summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/luatex/optex/base/basic-macros.opm
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/luatex/optex/base/basic-macros.opm')
-rw-r--r--Master/texmf-dist/tex/luatex/optex/base/basic-macros.opm10
1 files changed, 10 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/luatex/optex/base/basic-macros.opm b/Master/texmf-dist/tex/luatex/optex/base/basic-macros.opm
index 512678c312a..83181f95107 100644
--- a/Master/texmf-dist/tex/luatex/optex/base/basic-macros.opm
+++ b/Master/texmf-dist/tex/luatex/optex/base/basic-macros.opm
@@ -92,6 +92,16 @@
\_public \loggingall \tracingall ;
+ \_doc ------------------------------
+ Write a warning if the user did not to load a Unicode Font {\em or}
+ if there were unresolved references. \`\_byehook` is used in the \^`\bye` macro.
+ \_cod ------------------------------
+
+\_def\_byehook{%
+ \_ifx\_initunifonts\_relax \_relax\_else \_opwarning{Unicode font was not loaded}\_fi
+ \_ifnum\_unresolvedrefs>0 \_opwarning{Rerun to get references right}\_fi
+}
+
\_endcode % -------------------------------------