Introduce mjtBool for boolean types.

PiperOrigin-RevId: 920201340
Change-Id: I3b19c11a00357e06a1df08b8819832955c37f9ff
This commit is contained in:
Yuval Tassa
2026-05-23 09:13:21 -07:00
committed by Copybara-Service
parent 466d068089
commit 7667e7110e
7 changed files with 34 additions and 12 deletions
+17 -1
View File
@@ -84,13 +84,29 @@ changed by the user.
mjtByte
^^^^^^^
Byte type used to represent boolean variables.
Byte type used to represent small integers and binary data.
.. code-block:: C
typedef unsigned char mjtByte;
.. _mjtBool:
mjtBool
^^^^^^^
Boolean type used to represent true/false values.
.. code-block:: C
#ifndef __cplusplus
typedef _Bool mjtBool;
#else
typedef bool mjtBool;
#endif
.. _mjtSize:
mjtSize