unicens: support reproducible build
[apps/agl-service-unicens.git] / ucs2-interface / ucs-xml / UcsXml_Private.c
index 4fb4e0c..a1ef86c 100644 (file)
@@ -66,7 +66,8 @@ static const char* I2S_PIN_SRXB1 =          "SRXB1";
 static const char* MUTE_OFF =               "NoMuting";\r
 static const char* MUTE_SIGNAL =            "MuteSignal";\r
 \r
-#define ASSERT_FALSE(func, par) { UcsXml_CB_OnError("Parameter error in attribute=%s value=%s, file=%s, line=%d", 4, func, par,  __FILE__, __LINE__); return false; }\r
+#define __FILENAME__ (__builtin_strrchr(__FILE__, '/') ? __builtin_strrchr(__FILE__, '/') + 1 : __FILE__)\r
+#define ASSERT_FALSE(func, par) { UcsXml_CB_OnError("Parameter error in attribute=%s value=%s, file=%s, line=%d", 4, func, par,  __FILENAME__, __LINE__); return false; }\r
 #define CHECK_POINTER(PTR) if (NULL == PTR) { ASSERT_FALSE(PTR, "NULL pointer"); }\r
 \r
 static int32_t Str2Int(const char *val)\r