Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 79bf99c

Browse files
committed
Document the \csimplemacro macro and the csimplemacrodesc environment.
1 parent 19f827e commit 79bf99c

1 file changed

Lines changed: 20 additions & 0 deletions

File tree

Doc/doc/doc.tex

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -549,6 +549,16 @@ \section{Special Markup Constructs \label{special-constructs}}
549549
be used in the description.
550550
\end{envdesc}
551551

552+
\begin{envdesc}{csimplemacrodesc}{\p{name}}
553+
Documentation for a ``simple'' macro. Simple macros are macros
554+
which are used for code expansion, but which do not take
555+
arguments so cannot be described as functions. This is not to
556+
be used for simple constant definitions. Examples of it's use
557+
in the Python documentation include
558+
\csimplemacro{PyObject_HEAD} and
559+
\csimplemacro{Py_BEGIN_ALLOW_THREADS}.
560+
\end{envdesc}
561+
552562
\begin{envdesc}{ctypedesc}{\op{tag}\p{name}}
553563
Environment used to described a C type. The \var{name}
554564
parameter should be the \keyword{typedef} name. If the type is
@@ -735,6 +745,16 @@ \section{Special Markup Constructs \label{special-constructs}}
735745
changed.
736746
\end{macrodesc}
737747

748+
\begin{macrodesc}{csimplemacro}{\p{name}}
749+
The name of a ``simple'' macro. Simple macros are macros
750+
which are used for code expansion, but which do not take
751+
arguments so cannot be described as functions. This is not to
752+
be used for simple constant definitions. Examples of it's use
753+
in the Python documentation include
754+
\csimplemacro{PyObject_HEAD} and
755+
\csimplemacro{Py_BEGIN_ALLOW_THREADS}.
756+
\end{macrodesc}
757+
738758
\begin{macrodesc}{ctype}{\p{name}}
739759
The name of a C \keyword{typedef} or structure. For structures
740760
defined without a \keyword{typedef}, use \code{\e ctype\{struct

0 commit comments

Comments
 (0)