lexLeo
Loading...
Searching...
No Matches
data_structure_string_utils.h
1// src/foundation/data_structures/include/internal/data_structure_string_utils.h
2
3#ifndef DATA_STRUCTURE_STRING_UTILS_H
4#define DATA_STRUCTURE_STRING_UTILS_H
5
6#ifdef USE_STRING_UTILS
7 #include "string_utils.h"
8 #define DATA_STRUCTURE_STRING_COMPARE(s1,s2) get_current_string_compare()(s1,s2)
9 #define DATA_STRUCTURE_STRING_DUPLICATE(s) get_current_string_duplicate()(s)
10#else
11 #include <string.h>
12 #define DATA_STRUCTURE_STRING_COMPARE(s1,s2) strcmp(s1,s2)
13 #define DATA_STRUCTURE_STRING_DUPLICATE(s) osal_strdup(s)
14#endif
15
16#endif //DATA_STRUCTURE_STRING_UTILS_H