checkasm 1.0.1
Assembly testing and benchmarking framework
Loading...
Searching...
No Matches
User-provided Configuration

Macros

#define CHECKASM_HAVE_GENERIC   0
 Enable C11 _Generic support.

Detailed Description

User-provided preprocessor definitions for configuring the behavior of the checkasm header files. These macros should be defined before including checkasm.h, based on the availability of compiler features in the target project.

Macro Definition Documentation

◆ CHECKASM_HAVE_GENERIC

#define CHECKASM_HAVE_GENERIC   0

Enable C11 _Generic support.

When enabled (defined to a nonzero value), checkasm uses C11's _Generic keyword to enable extra checks that rely on type information. This enables register width checking and floating point state checks on supported platforms. When disabled (defined to 0), these features are silently disabled.

By default (when not defined), this is automatically enabled for C11 and later, and disabled for older C standards. Define this macro before including checkasm.h to explicitly control the behavior.

Note
This is not needed when compiling with -std=c11 or later.