#### File: c_mexapi_version.c
        1   #include <mex.h>
        2   #if defined(MX_COMPAT_32) || defined(MX_COMPAT_64) || !defined(USE_MEX_CMD) || TARGET_API_VERSION >= 800
        3   #define MX_TMP_TARGET_API_VER MX_TARGET_API_VER
        4   #else
        5   #define MX_TMP_TARGET_API_VER 0
        6   #endif
        7   MEXFUNCTION_LINKAGE
        8   void mexfilerequiredapiversion(unsigned int* built_by_rel, unsigned int* target_api_ver)
        9   {
       10     *built_by_rel = 0x2017b;
       11     *target_api_ver = MX_TMP_TARGET_API_VER;
       12   }
       13
       14