libGimbal 0.2.0
C17-Based Extended Standard Library and Cross-Language Runtime Framework
Loading...
Searching...
No Matches
gimbal_config.h
1#ifndef GIMBAL_CONFIG_H
2#define GIMBAL_CONFIG_H
3
4#include <stdint.h>
5#include <stddef.h>
6#include <assert.h>
7#include <gimbal/preprocessor/gimbal_compiler.h>
8
9#ifdef __cplusplus
10extern "C" {
11#endif
12
13#ifndef GBL_ASSERT_1
14# define GBL_ASSERT_1(expr) assert((expr))
15#endif
16
17#ifndef GBL_ASSERT_2
18# define GBL_ASSERT_2(expr, cause) GBL_ASSERT_1((expr) && (cause))
19#endif
20
21#ifndef GBL_CTX_FRAME_NAME
22# define GBL_CTX_FRAME_NAME gblApiFrame_
23#endif
24
25#ifndef GBL_CTX_END_LABEL
26# define GBL_CTX_END_LABEL gbl_api_end_
27#endif
28
29#ifndef GBL_VA_SNPRINTF_BUFFER_SIZE
30# define GBL_VA_SNPRINTF_BUFFER_SIZE 512
31#endif
32
33#ifndef GBL_CTX_RESULT_MSG_BUFFER_SIZE
34# define GBL_CTX_RESULT_MSG_BUFFER_SIZE 128
35#endif
36
37#ifndef GBL_STRING_FLOAT_DECIMAL_PLACES
38# define GBL_STRING_FLOAT_DECIMAL_PLACES 3
39#endif
40
41#ifdef __cplusplus
42}
43#endif
44
45
46#endif // GBL_CONFIG_H
#define GBL_ASSERT_1(expr)