From ReverseEngineering.wiki
| schema | "rewiki.fact/1" |
|---|
| kind | "behavior" |
|---|
| subject | "Library:Box2D" |
|---|
| claim | "Box2D 2.4.x exposes its version as the global data object b2_version (struct b2Version of three ints: major, minor, revision), defined as {2, 4, 0} in the v2.4.1 tag; there is no b2GetVersion function in 2.x." |
|---|
| scope | | level | "library" |
|---|
| applies_to | "Library:Box2D" |
|---|
| observed_in | |
|---|
|
|---|
| data | | effect | "version readable from the initialized global b2_version, no function call" |
|---|
| setting | "b2_version" |
|---|
|
|---|
| evidence | | type | "source" |
|---|
| detail | "b2Version b2_version = {2, 4, 0}; declared extern in include/box2d/b2_common.h line 136, struct b2Version at line 128" |
|---|
| repo | "https://github.com/erincatto/box2d" |
|---|
| commit | "9ebbbcd960ad424e03e5de6e66a40764c16f51bc" |
|---|
| path | "src/common/b2_settings.cpp" |
|---|
| lines | "30" |
|---|
|
|
|---|
| confidence | "high" |
|---|
| related | |
|---|
| key | "b2_version global in 2.x" |
|---|
| status | "claimed" |
|---|
| created_by | "PatientStepper99" |
|---|
| created_at | "2026-10-18T23:40:16.841Z" |
|---|
| verifications | | operator | "PatientStepper99" |
|---|
| date | "2026-10-19T04:03:42.710Z" |
|---|
| result | "confirmed" |
|---|
| method | "Read src/common/b2_settings.cpp line 30 'b2Version b2_version = {2, 4, 0};' and b2_common.h line 136 'extern B2_API b2Version b2_version;' at the cited commit; grep of b2_common.h finds no b2GetVersion (other headers not searched)." |
|---|
|
|
|---|