uLib
ulib_config.h
Go to the documentation of this file.
1 // Copyright (c) Microsoft. All rights reserved.
2 // Licensed under the MIT license. See LICENSE file in the project root for full license information.
3 
4 #ifndef AZ_ULIB_CONFIG_H
5 #define AZ_ULIB_CONFIG_H
6 
7 #ifdef __cplusplus
8 extern "C" {
9 #endif /* __cplusplus */
10 
17 /*
18  * Define the heap
19  */
20 
27 #define AZ_ULIB_CONFIG_MALLOC(size) malloc(size)
28 
35 #define AZ_ULIB_CONFIG_FREE(ptr) free(ptr)
36 
37 /*
38  * Define log Function
39  */
40 
47 #define AZ_ULIB_CONFIG_LOG(category, format, ...) az_ulog_print(category, format, ##__VA_ARGS__)
48 
54 #define AZ_ULIB_CONFIG_MAX_LOG_SIZE 256
55 
56 #ifdef __cplusplus
57 }
58 #endif /* __cplusplus */
59 
60 #endif /* AZ_ULIB_CONFIG_H */