The LinkParser top-level namespace.
encoding: utf-8
Release version
Return the version of the link-grammar library the binding is linked against.
static VALUE
rlink_link_grammar_version( VALUE self )
{
#ifdef HAVE_LINKGRAMMAR_GET_VERSION
const char *version = linkgrammar_get_version();
if ( !version ) rb_bug( "linkgrammar_get_version returned NULL pointer" );
return rb_str_new2( version );
#else
return rb_str_new2( "link-grammar-4.3.9-or-earlier" );
#endif /* HAVE_LINKGRAMMAR_GET_VERSION */
}