Compile-time size assertions for MuJoCo basic types
PiperOrigin-RevId: 919107499 Change-Id: I07fcba4f33c77a2a1e68528dba6d399af94d0220
This commit is contained in:
committed by
Copybara-Service
parent
585be6cee5
commit
15d27b363f
@@ -80,6 +80,12 @@ General
|
||||
- MJX: Removed the deprecated ``nconmax`` argument from ``mjx.make_data`` and ``mjx.put_data`` in favor of
|
||||
``naconmax``.
|
||||
|
||||
- Maybe-breaking: Added `mjassert.h
|
||||
<https://github.com/google-deepmind/mujoco/blob/main/include/mujoco/mjassert.h>`__, a new header containing
|
||||
compile-time assertions that verify the sizes of MuJoCo's public types for ABI stability. This is a first step
|
||||
towards replacing ``int`` with strongly-typed enums in the public API. If these assertions fail on your compiler or
|
||||
platform, please report the issue on GitHub.
|
||||
|
||||
Version 3.8.1 (May 11, 2026)
|
||||
----------------------------
|
||||
|
||||
|
||||
@@ -184,6 +184,8 @@ links below, to make this documentation self-contained.
|
||||
code.
|
||||
`mjsan.h <https://github.com/google-deepmind/mujoco/blob/main/include/mujoco/mjsan.h>`__
|
||||
Definitions required when building with sanitizer instrumentation.
|
||||
`mjassert.h <https://github.com/google-deepmind/mujoco/blob/main/include/mujoco/mjassert.h>`__
|
||||
Compile-time size assertions verifying MuJoCo ABI stability across C and C++ compilers.
|
||||
|
||||
.. _inVersion:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user