… | |
… | |
192 | as this indicates an incompatible change. Minor versions are usually |
192 | as this indicates an incompatible change. Minor versions are usually |
193 | compatible to older versions, so a larger minor version alone is usually |
193 | compatible to older versions, so a larger minor version alone is usually |
194 | not a problem. |
194 | not a problem. |
195 | |
195 | |
196 | Example: Make sure we haven't accidentally been linked against the wrong |
196 | Example: Make sure we haven't accidentally been linked against the wrong |
197 | version. |
197 | version (note, however, that this will not detect ABI mismatches :). |
198 | |
198 | |
199 | assert (("libev version mismatch", |
199 | assert (("libev version mismatch", |
200 | ev_version_major () == EV_VERSION_MAJOR |
200 | ev_version_major () == EV_VERSION_MAJOR |
201 | && ev_version_minor () >= EV_VERSION_MINOR)); |
201 | && ev_version_minor () >= EV_VERSION_MINOR)); |
202 | |
202 | |