Next: Configuration methods, Previous: Introduction to the method descriptions, Up: Top [Contents][Index]
Checks that the Marpa library in use is compatible with the
given version. Generally, the application programmer will pass in the constants
MARPA_MAJOR_VERSION
,
MARPA_MINOR_VERSION
, and
MARPA_MICRO_VERSION
as the three arguments,
to check that their application was compiled with headers
that match the version of Libmarpa that they
are using.
If required_major.required_minor.required_micro is an exact match with the version of Libmarpa, the method succeeds. The version of Libmarpa described in this manual is 11.0.10. Otherwise the return status is an irrecoverable hard failure.
Return value: On success, MARPA_ERR_NONE
.
On hard failure, the error code.
Writes the version number in version.
It is an undetected irrecoverable hard failure
if version does not have room for three int
’s.
Return value: Always succeeds. The return value is unspecified.