Capture mjs_attach error message in the Python bindings.

PiperOrigin-RevId: 682409212
Change-Id: I391ee48626e7dcd985f65a231370ef5ec16124d7
This commit is contained in:
Alessio Quaglino
2024-10-04 12:18:36 -07:00
committed by Copybara-Service
parent 3091665c16
commit 6e66cafe76
8 changed files with 68 additions and 3 deletions
+16
View File
@@ -9682,6 +9682,22 @@ FUNCTIONS: Mapping[str, FunctionDecl] = dict([
),
doc='Get spec from body.',
)),
('mjs_getSpecFromFrame',
FunctionDecl(
name='mjs_getSpecFromFrame',
return_type=PointerType(
inner_type=ValueType(name='mjSpec'),
),
parameters=(
FunctionParameterDecl(
name='frame',
type=PointerType(
inner_type=ValueType(name='mjsFrame'),
),
),
),
doc='Get spec from frame.',
)),
('mjs_findBody',
FunctionDecl(
name='mjs_findBody',