summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--luatexbase-attr.dtx9
1 files changed, 4 insertions, 5 deletions
diff --git a/luatexbase-attr.dtx b/luatexbase-attr.dtx
index 78602d3..e58a965 100644
--- a/luatexbase-attr.dtx
+++ b/luatexbase-attr.dtx
@@ -320,14 +320,13 @@ See source file '\inFileName' for details.
\fi}
% \end{macrocode}
%
-% Helper macro |\unsetluatexattribute|: wrapper around the Lua function.
+% Helper macro |\unsetluatexattribute|.
%
% \begin{macrocode}
+\newcount\lltxb@attr@unsetvalue
+\lltxb@attr@unsetvalue=\ifnum\luatexversion<37 -1\else -2147483647\fi\relax
\def\unsetluatexattribute#1{%
- \begingroup\escapechar\m@ne \edef\x{\endgroup
- \noexpand\luatexbase@directlua{%
- luatexbase.unset_attribute("\luatexluaescapestring{\string#1}")}%
- }\x}
+ #1\lltxb@attr@unsetvalue}
% \end{macrocode}
%
% And now the trivial helper macro.