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


11 Static methods

Function: Marpa_Error_Code marpa_check_version ( int required_major, int required_minor, int required_micro )

[Accessor] 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 the match the version of Libmarpa that they are using.

If required_major.required_minor.required_micro is an exact match with 9.0.3, the method succeeds. Otherwise the return status is an irrecoverable hard failure.

Return value: On success, MARPA_ERR_NONE. On hard failure, the error code.

Function: Marpa_Error_Code marpa_version ( int* version)

[Accessor] 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 indeterminate.