3 ms·
And the opposite is true too: you can break API (by renaming a field) while preserving the ABI (since it didn't move/change type).
by thrtythreeforty 2y ago
And the opposite is true too: you can break API (by renaming a field) while preserving the ABI (since it didn't move/change type).
- NekkoDroid 2y agoYou can also with certain type of APIs increase the size of structs and still be ABI compatible. This is usually done by encoding the size of the type as a member of the struct that is usually assigned via `x.size = sizeof(x)` and passed around as pointers. Takes real care to maintain that though. IIRC this appears somewhat frequently in Win32.