Introduce mjtBool for boolean types.
PiperOrigin-RevId: 920201340 Change-Id: I3b19c11a00357e06a1df08b8819832955c37f9ff
This commit is contained in:
committed by
Copybara-Service
parent
466d068089
commit
7667e7110e
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user