Azure IoT common library

Dependents:   STM32F746_iothub_client_sample_mqtt f767zi_mqtt iothub_client_sample_amqp iothub_client_sample_http ... more

Revision:
21:b92006c5b9ff
Parent:
18:6d8a413a4d9a
Child:
22:10640b226104
--- a/azure_c_shared_utility/macro_utils.h	Fri Feb 10 17:01:36 2017 -0800
+++ b/azure_c_shared_utility/macro_utils.h	Fri Feb 24 14:01:41 2017 -0800
@@ -9,6 +9,7 @@
 #define MACRO_UTILS_H
 
 #include <string.h>
+#include "azure_c_shared_utility/optimize_size.h"
 
 /*"pointer or NULL" macro - because when printf-ing arguments NULL is not valid for %p or %s (section 7.1.4 of C11 standard) */
 #define P_OR_NULL(p) (((p)!=NULL)?(p):"NULL")
@@ -11558,7 +11559,7 @@
         (enumAsString==NULL) || (destination==NULL)                             \
     )                                                                           \
     {                                                                           \
-        return __LINE__;                                                        \
+        return __FAILURE__;                                                     \
     }                                                                           \
     else                                                                        \
     {                                                                           \
@@ -11571,7 +11572,7 @@
                 return 0;                                                       \
             }                                                                   \
         }                                                                       \
-        return __LINE__;                                                        \
+        return __FAILURE__;                                                     \
     }                                                                           \
 }                                                                               \