Repository navigation
box2d-m 3.2.0: Box2D 3.2.0 as C++23 modules (mcpplibs.mwrap.box2d) - #1
Merged
Merged
Conversation
… generated from the pinned headers; API, macro and header-mixing tests; export audit
…F4) and a struck 20-row pyramid (600 steps) pinned under 1-8 workers, a user task system and the SSE2 fallback; examples/box2d (box2d-determinism) and tools/run_determinism.py
…umentation, CI (Linux x86_64 GCC/LLVM, Linux arm64 GCC/LLVM, macOS, Windows, the Web), release and template workflows; the candidate compat index while compat.box2d is unpublished
…ppens only when optimizing); the tests in the release profile, natively and under node
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
First release of
mcpplibs.mwrap.box2d3.2.0: Box2D v3.2.0 (MIT) as C++23 modules overcompat.box2d3.2.0 (mcpplibs/mcpp-index#611).import mcpplibs.mwrap.box2d;— every declaration of the installed headers byexport usingunder the upstream global names: 110 types, 3 opaque structs, 176 enumerators, 506B2_APIfunctions (b2InternalAssertunder the header's own assertion conditional), 91 inline functions (inlinein C++, so exportable as they are), 8 C++ vector operators,b2_lengthUnitsPerMeter. The 13static constobjects (internal linkage:b2_nullBodyId,b2Rot_identity…) areinline constexprof the same type and initializer inmcpplibs::mwrap::box2d.import mcpplibs.mwrap.box2d.macros;— 20 constants of their macro's type, the 5 length-unit values as functions (B2_LINEAR_SLOP(): they readb2_lengthUnitsPerMeter),B2_IS_NULL/B2_IS_NON_NULL/B2_ID_EQUALSas constexpr templates; 12 stay in<mwrap/box2d/macros.hpp>(declaration specifiers, initializer syntax, assertions), each with its reason. Generated from the pinned headers (tools/gen_exports.py), audited bytools/check_exports.py, every mapping checked against the raw header.tests/determinism_test.cpppins upstream's falling-hinges scene (sleep step 299, hash0x465F3DF4, upstream's own values) and a struck 20-row pyramid (600 steps, sleep off) under 1/2/4/8 workers, a user task system and the SSE2 fallback;tools/run_determinism.pyreports them throughexamples/box2d(box2d-determinism) on every row: Linux x86_64 GCC/LLVM, Linux arm64 GCC/LLVM, macOS, Windows, and wasm32-emscripten under node.physics, bilingual README, docs/usage.md, release and template workflows;tools/candidate_index.pyresolves compat.box2d from #611's branch until it is published.