From d7ec409eb651c3143e7165b5221cbf3e0b254144 Mon Sep 17 00:00:00 2001 From: Yuval Tassa Date: Tue, 18 Apr 2023 08:10:53 -0700 Subject: [PATCH] Improve code block for `mjFREESTACK` documentation. PiperOrigin-RevId: 525150006 Change-Id: Ief5af7ea78658f89449795b58466dac14ab7e32a --- doc/APIreference/APIfunctions.rst | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/doc/APIreference/APIfunctions.rst b/doc/APIreference/APIfunctions.rst index 8809061a..a7d25dc2 100644 --- a/doc/APIreference/APIfunctions.rst +++ b/doc/APIreference/APIfunctions.rst @@ -56,12 +56,12 @@ mjMARKSTACK This macro is helpful when using the MuJoCo stack in custom computations. It works together with the next macro and the :ref:`mj_stackAlloc` function, and assumes that mjData\* d is defined. The use pattern is this: -:: +.. code-block:: C - mjMARKSTACK - mjtNum* temp = mj_stackAlloc(d, 100); - // ... use temp as needed - mjFREESTACK + mjMARKSTACK; + mjtNum* temp = mj_stackAlloc(d, 100); + // ... use temp as needed + mjFREESTACK; .. _mjFREESTACK: