[latex3-commits] [git/LaTeX3-latex3-latex3] main: Can't use \ifdefined here (1ac80a64d)

PhelypeOleinik phelype.oleinik at latex-project.org
Thu Feb 10 21:23:52 CET 2022


Repository : https://github.com/latex3/latex3
On branch  : main
Link       : https://github.com/latex3/latex3/commit/1ac80a64d417dfdd012192fba154f34a59cd0228

>---------------------------------------------------------------

commit 1ac80a64d417dfdd012192fba154f34a59cd0228
Author: PhelypeOleinik <phelype.oleinik at latex-project.org>
Date:   Thu Feb 10 17:23:52 2022 -0300

    Can't use \ifdefined here
    
    Non e-TeX engines don't see that as an \if primitive and lose track of \if...\fi balancing


>---------------------------------------------------------------

1ac80a64d417dfdd012192fba154f34a59cd0228
 l3kernel/l3bootstrap.dtx | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/l3kernel/l3bootstrap.dtx b/l3kernel/l3bootstrap.dtx
index 7d170aa6c..aca61b430 100644
--- a/l3kernel/l3bootstrap.dtx
+++ b/l3kernel/l3bootstrap.dtx
@@ -194,7 +194,11 @@
     \expandafter\ifx\csname newcatcodetable\endcsname\relax
       \input{ltluatex}%
     \fi
-    \ifdefined\newluabytecode\newluabytecode\@expl at luadata@bytecode\fi
+    \begingroup\expandafter\expandafter\expandafter\endgroup
+    \expandafter\ifx\csname newluabytecode\endcsname\relax
+    \else
+      \newluabytecode\@expl at luadata@bytecode
+    \fi
     \directlua{require("expl3")}%
 %    \end{macrocode}
 %   As the user might be making a custom format, no assumption is made about





More information about the latex3-commits mailing list.