Next: , Previous: , Up: Top   [Contents][Index]


16 Static methods

Accessor function: Marpa_Error_Code marpa_check_version ( int required_major, int required_minor, int required_micro )

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.

Accessor function: Marpa_Error_Code marpa_version ( int* version)

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.