for (i = 0; i < linear_len / sizeof(int16_t); i++) {
pcmu_data[i] = linear_to_ulaw(linear_samples[i]);
}
- pcmu_frame.source = __FUNCTION__;
+ pcmu_frame.source = __SWITCH_FUNC__;
pcmu_frame.data = pcmu_data;
pcmu_frame.datalen = i;
pcmu_frame.payload = 0;
for (i = 0; i < linear_len / sizeof(int16_t); i++) {
pcmu_data[i] = linear_to_ulaw(linear_samples[i]);
}
- pcmu_frame.source = __FUNCTION__;
+ pcmu_frame.source = __SWITCH_FUNC__;
pcmu_frame.data = pcmu_data;
pcmu_frame.datalen = i;
pcmu_frame.payload = 0;
#define CR_VERSION_STRING_SIZE_STR STRINGIFY(CREDIS_VERSION_STRING_SIZE)
#ifdef PRINTDEBUG
+#if !defined(_MSC_VER) && !defined(__FUNCTION__)
+#define __FUNCTION__ (const char *)__func__
+#endif
/* add -DPRINTDEBUG to CPPFLAGS in Makefile for debug outputs */
#define DEBUG(...) \
do { \
/* do the writing */
memset(&linear_frame, 0, sizeof(linear_frame));
- linear_frame.source = __FUNCTION__;
+ linear_frame.source = __SWITCH_FUNC__;
linear_frame.data = decoded_byteswapped_data;
linear_frame.datalen = decoded_data_len;
linear_frame.payload = linear_payload;
/* do the writing */
memset(&encoded_frame, 0, sizeof(encoded_frame));
- encoded_frame.source = __FUNCTION__;
+ encoded_frame.source = __SWITCH_FUNC__;
encoded_frame.data = encoded_data;
encoded_frame.datalen = encoded_data_len;
encoded_frame.payload = codec->implementation->ianacode;