Improve code block for mjFREESTACK documentation.
PiperOrigin-RevId: 525150006 Change-Id: Ief5af7ea78658f89449795b58466dac14ab7e32a
This commit is contained in:
committed by
Copybara-Service
parent
c69e0b97fb
commit
d7ec409eb6
@@ -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
|
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:
|
:ref:`mj_stackAlloc` function, and assumes that mjData\* d is defined. The use pattern is this:
|
||||||
|
|
||||||
::
|
.. code-block:: C
|
||||||
|
|
||||||
mjMARKSTACK
|
mjMARKSTACK;
|
||||||
mjtNum* temp = mj_stackAlloc(d, 100);
|
mjtNum* temp = mj_stackAlloc(d, 100);
|
||||||
// ... use temp as needed
|
// ... use temp as needed
|
||||||
mjFREESTACK
|
mjFREESTACK;
|
||||||
|
|
||||||
|
|
||||||
.. _mjFREESTACK:
|
.. _mjFREESTACK:
|
||||||
|
|||||||
Reference in New Issue
Block a user