Generate using declarations for anonymous structs in WASM bindings.

PiperOrigin-RevId: 832359379
Change-Id: Ie5913c584c5605f512dbe423524a829043179b6f
This commit is contained in:
Matias Manevi
2025-11-14 10:02:20 -08:00
committed by Copybara-Service
parent 999344c998
commit 53e254b715
3 changed files with 14 additions and 10 deletions
+2 -3
View File
@@ -105,13 +105,12 @@ std::vector<WrapperType> InitWrapperArray(ArrayType* array, SizeType size) {
return result;
}
// Create the types for anonymous structs
using mjVisualGlobal = decltype(::mjVisual::global);
using mjVisualQuality = decltype(::mjVisual::quality);
using mjVisualHeadlight = decltype(::mjVisual::headlight);
using mjVisualMap = decltype(::mjVisual::map);
using mjVisualScale = decltype(::mjVisual::scale);
using mjVisualQuality = decltype(::mjVisual::quality);
using mjVisualRgba = decltype(::mjVisual::rgba);
using mjVisualScale = decltype(::mjVisual::scale);
struct MjContact {
explicit MjContact(mjContact *ptr);