/** * @file version.c * @brief Implements the runtime half of the version API. */ #include const char *akgl_version(void) { // AKGL_VERSION is baked in when this translation unit is compiled, so what // comes back is the version of the shared library the caller linked -- not // the version of the header the caller built against. That asymmetry is the // whole point: comparing the two detects a stale libakgl on the loader path. return AKGL_VERSION; }