dl
dl_platform.h 文件参考

平台宏 更多...

浏览该文件的源代码.

宏定义

#define DL_PLATFORM_ERROR   0
 
#define DL_PLATFORM_WIN32   1
 
#define DL_PLATFORM_LINUX   2
 
#define DL_PLATFORM_ANDROID   3
 
#define DL_PLATFORM_APPLE   4
 
#define DL_PLATFORM   DL_PLATFORM_ERROR
 
#define DL_CPU_ARCH_ERROR   0
 
#define DL_CPU_ARCH_AMD64   0
 
#define DL_CPU_ARCH_ARM64   1
 
#define DL_CPU_ARCH_X86   2
 
#define DL_CPU_ARCH_ARM   3
 
#define DL_CPU_ARCH   DL_CPU_ARCH_ERROR
 
#define DL_ENDIAN_LITTLE   can-not-use
 

函数

consteval bool is_x64 ()
 是否64位
 

详细描述

平台宏

版本
1.0
作者
lveyou
日期
23-06-23
注解
必须使用 DL_PLATFORM == DL_PLATFORM_WIN32 来判断,避免未包含头文件引起误判

在文件 dl_platform.h 中定义.

宏定义说明

◆ DL_CPU_ARCH

#define DL_CPU_ARCH   DL_CPU_ARCH_ERROR

在文件 dl_platform.h62 行定义.

◆ DL_CPU_ARCH_AMD64

#define DL_CPU_ARCH_AMD64   0

在文件 dl_platform.h57 行定义.

◆ DL_CPU_ARCH_ARM

#define DL_CPU_ARCH_ARM   3

在文件 dl_platform.h60 行定义.

◆ DL_CPU_ARCH_ARM64

#define DL_CPU_ARCH_ARM64   1

在文件 dl_platform.h58 行定义.

◆ DL_CPU_ARCH_ERROR

#define DL_CPU_ARCH_ERROR   0

在文件 dl_platform.h56 行定义.

◆ DL_CPU_ARCH_X86

#define DL_CPU_ARCH_X86   2

在文件 dl_platform.h59 行定义.

◆ DL_ENDIAN_LITTLE

#define DL_ENDIAN_LITTLE   can-not-use

在文件 dl_platform.h79 行定义.

◆ DL_PLATFORM

#define DL_PLATFORM   DL_PLATFORM_ERROR

在文件 dl_platform.h20 行定义.

◆ DL_PLATFORM_ANDROID

#define DL_PLATFORM_ANDROID   3

在文件 dl_platform.h17 行定义.

◆ DL_PLATFORM_APPLE

#define DL_PLATFORM_APPLE   4

在文件 dl_platform.h18 行定义.

◆ DL_PLATFORM_ERROR

#define DL_PLATFORM_ERROR   0

在文件 dl_platform.h14 行定义.

◆ DL_PLATFORM_LINUX

#define DL_PLATFORM_LINUX   2

在文件 dl_platform.h16 行定义.

◆ DL_PLATFORM_WIN32

#define DL_PLATFORM_WIN32   1

在文件 dl_platform.h15 行定义.

函数说明

◆ is_x64()

bool is_x64 ( )
consteval

是否64位

在文件 dl_platform.h43 行定义.