Define cross-language attribute macros
Some checks failed
Builds / ExectOS (amd64, release) (push) Failing after 30s
Builds / ExectOS (i686, debug) (push) Failing after 29s
Builds / ExectOS (i686, release) (push) Failing after 36s
Builds / ExectOS (amd64, debug) (push) Failing after 38s

This commit is contained in:
2026-07-09 08:36:18 +02:00
parent 7336710c23
commit aae31c2b1d

View File

@@ -20,6 +20,11 @@
#define XTCLINK extern "C"
#define XTSYMBOL(Name) __asm__(Name)
/* C++ attributes */
#define MUSTCHECK [[nodiscard]]
#define NORETURN [[noreturn]]
#define UNUSED [[maybe_unused]]
/* C++ boolean type */
typedef bool BOOLEAN, *PBOOLEAN;
#define TRUE true
@@ -34,6 +39,11 @@
#define XTCLINK
#define XTSYMBOL(Name)
/* C attributes */
#define MUSTCHECK __attribute__((warn_unused_result))
#define NORETURN __attribute__((noreturn))
#define UNUSED __attribute__((unused))
/* C boolean type */
typedef enum _BOOLEAN
{