summaryrefslogtreecommitdiff
path: root/graphics/pgf/base/tex/pgfutil-common.tex
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2020-09-29 03:02:54 +0000
committerNorbert Preining <norbert@preining.info>2020-09-29 03:02:54 +0000
commitd043a18e288914d3c46a1b10af1f30ce2df00588 (patch)
tree888d8c0677d7b328602f1ec5c09d324a325043ec /graphics/pgf/base/tex/pgfutil-common.tex
parent34310603e5253ef5742542e3f0123b341a70ee20 (diff)
CTAN sync 202009290302
Diffstat (limited to 'graphics/pgf/base/tex/pgfutil-common.tex')
-rw-r--r--graphics/pgf/base/tex/pgfutil-common.tex16
1 files changed, 14 insertions, 2 deletions
diff --git a/graphics/pgf/base/tex/pgfutil-common.tex b/graphics/pgf/base/tex/pgfutil-common.tex
index b1c0546c17..37210d4870 100644
--- a/graphics/pgf/base/tex/pgfutil-common.tex
+++ b/graphics/pgf/base/tex/pgfutil-common.tex
@@ -1,4 +1,4 @@
-% Copyright 2006 by Till Tantau
+% Copyright 2019 by Till Tantau
%
% This file may be distributed and/or modified
%
@@ -45,6 +45,18 @@
\def\pgfutil@trimspaces@@#1Q#2{#1}
\catcode`\Q=11
+% \pgfutil@ifempty{<cs>}{<true code>}{<false code>}
+%
+% Check if <cs> is equal to \pgfutil@empty
+%
+% This macro is expandable.
+\def\pgfutil@ifempty#1{%
+ \ifx#1\pgfutil@empty
+ \expandafter\pgfutil@firstoftwo
+ \else
+ \expandafter\pgfutil@secondoftwo
+ \fi}
+
% \pgfutil@ifundefined{<macro name with backslash>}
% {<is undefined code>}{<is defined code>}
%
@@ -99,7 +111,7 @@
\csname newcount\expandafter\endcsname\csname pgfutil@pushedmacro@\pgfutil@pushmacro@string\endcsname
\fi
\global\advance\csname pgfutil@pushedmacro@\pgfutil@pushmacro@string\endcsname 1\relax
- \expandafter\glet\csname\the\csname pgfutil@pushedmacro@\pgfutil@pushmacro@string\endcsname\pgfutil@pushmacro@string\endcsname#1%
+ \global\expandafter\let\csname\the\csname pgfutil@pushedmacro@\pgfutil@pushmacro@string\endcsname\pgfutil@pushmacro@string\endcsname#1%
}
\def\pgfutil@popmacro#1{%