Skip to content

Commit

Permalink
new \cs_use:N/c
Browse files Browse the repository at this point in the history
with chking, of course
  • Loading branch information
wspr committed Feb 4, 2019
1 parent 7279c23 commit 5b94531
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions l3kernel/l3basics.dtx
Expand Up @@ -2818,6 +2818,29 @@
{ \cs_if_exist:cTF {#1} { \use:c {#1} } { } }
% \end{macrocode}
% \end{macro}
%
% \begin{macro}{\cs_use:N, \cs_use:c}[EXP,added=2019-01-13]
% \begin{macrocode}
\__kernel_if_debug:TF
{
\cs_set:Npn \cs_use:N #1
{
\__kernel_chk_cs_exist:N #1
#1
}
\cs_set:Npn \cs_use:c #1
{
\__kernel_chk_cs_exist:c {#1}
\cs:w #1 \cs_end:
}
}
{
\cs_set:Npn \cs_use:N #1 { #1 }
\cs_set:Npn \cs_use:c #1 { \cs:w #1 \cs_end: }
}
% \end{macrocode}
% \end{macro}

%
% \subsection{Preliminaries for new functions}
%
Expand Down

0 comments on commit 5b94531

Please sign in to comment.