Foundations
This commit is contained in:
@@ -1,6 +1,11 @@
|
||||
#ifndef INCLUDED_C_PLATFORM_H
|
||||
#define INCLUDED_C_PLATFORM_H
|
||||
|
||||
#ifndef INCLUDED_C_CONFIG_H
|
||||
#include <c_Config.h>
|
||||
#endif /*INCLUDED_C_CONFIG_H*/
|
||||
|
||||
|
||||
/* ==============================================================================
|
||||
* 🎯 1. 编译器类型常量(严格以 C_ 开头)
|
||||
* ============================================================================== */
|
||||
@@ -127,5 +132,14 @@
|
||||
#define C_ENVIRONMENT_IS_MINGW 0
|
||||
#endif
|
||||
|
||||
/* ------------------------------------------------------------------------------------------------------------------ */
|
||||
/* */
|
||||
|
||||
#if (C_SIZEOF_VOID_P==8)
|
||||
#define C_PLATFORM_IS_64BIT
|
||||
#elif (C_SIZEOF_VOID_P==4)
|
||||
#define C_PLATFORM_IS_32BIT
|
||||
#endif
|
||||
|
||||
|
||||
#endif /*INCLUDED_C_PLATFORM_H*/
|
||||
|
||||
@@ -108,6 +108,7 @@ typedef int c_err_t;
|
||||
#define C_ERR_OUTOFBOUND (-6)
|
||||
#define C_ERR_EMPTY (-7)
|
||||
#define C_ERR_FULL (-8)
|
||||
#define C_ERR_ALREADY_EXISTS (-9)
|
||||
|
||||
#define C_SUCCESS C_ERR_OK
|
||||
|
||||
@@ -118,5 +119,9 @@ typedef int c_err_t;
|
||||
#define C_TRUE true
|
||||
#define C_FALSE false
|
||||
|
||||
/* ------------------------------------------------------------------------------------------------------------------ */
|
||||
/* */
|
||||
|
||||
typedef c_int_t c_index_t;
|
||||
|
||||
#endif /*INCLUDED_C_TYPES_H*/
|
||||
|
||||
Reference in New Issue
Block a user