Skip to content

Commit

Permalink
Merge pull request #1028 from Skillmon/check-expanded
Browse files Browse the repository at this point in the history
check whether expanded is a primitive
  • Loading branch information
hmenke authored Jul 2, 2021
2 parents e9c22dc + 1f6748b commit afa8dcc
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions tex/generic/pgf/utilities/pgfkeys.code.tex
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,17 @@
\let\pgfkeys@unexpanded \normalunexpanded
\fi

\begingroup
\edef\pgfkeys@tmpa{\string\expanded}
\edef\pgfkeys@tmpb{\meaning\pgfkeys@expanded}
\expandafter
\endgroup
\ifx\pgfkeys@tmpa\pgfkeys@tmpb
\else
\pgfkeys@error{PGF requires the \noexpand\expanded primitive}
\csname @@end\expandafter\endcsname\expandafter\end%
\fi


% Set a key to a value
%
Expand Down

0 comments on commit afa8dcc

Please sign in to comment.