infix
A JIT-Powered FFI Library for C
Loading...
Searching...
No Matches
compat_c23.h File Reference

Provides compatibility shims for C23 features in a C17/C11 project. More...

#include <stdbool.h>
#include <stddef.h>
Include dependency graph for compat_c23.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define nullptr   ((void *)0)
 
#define COMPAT_HAS_C_ATTRIBUTE(x)   0
 
#define c23_nodiscard
 
#define c23_deprecated
 
#define c23_fallthrough   /* fallthrough */
 
#define c23_maybe_unused
 

Detailed Description

Provides compatibility shims for C23 features in a C17/C11 project.

Copyright (c) 2025 Sanko Robinson

This source code is dual-licensed under the Artistic License 2.0 or the MIT License. You may choose to use this code under the terms of either license.

SPDX-License-Identifier: (Artistic-2.0 OR MIT)

The documentation blocks within this file are licensed under the Creative Commons Attribution 4.0 International License (CC BY 4.0).

SPDX-License-Identifier: CC-BY-4.0

Macro Definition Documentation

◆ c23_deprecated

#define c23_deprecated

◆ c23_fallthrough

#define c23_fallthrough   /* fallthrough */

◆ c23_maybe_unused

#define c23_maybe_unused

◆ c23_nodiscard

#define c23_nodiscard

◆ COMPAT_HAS_C_ATTRIBUTE

#define COMPAT_HAS_C_ATTRIBUTE (   x)    0

◆ nullptr

#define nullptr   ((void *)0)