Macros

Macros#

2026-10-23

1 min read time

Applies to Linux and Windows

libhipcxx provides a set of convenience macros for detecting various system and compile-time properties via the preprocessor. These macros are available when any libhipcxx header is included, and do not require including a specific header file.

Macro

Content

Since

_CCCL_OS(<os>), for example _CCCL_OS(LINUX) or _CCCL_OS(WINDOWS)

Detecting the current operating system.

libhipcxx 3.4