KallistiOS git master
Independent SDK for the Sega Dreamcast
Loading...
Searching...
No Matches
cdefs.h File Reference

Various common macros used throughout the codebase. More...

#include <sys/cdefs.h>

Go to the source code of this file.

Macros

#define __noreturn   __attribute__((__noreturn__))
 Identify a function that will never return.
 
#define __deprecated   __attribute__((deprecated))
 Mark something as deprecated.
 
#define __fallthrough   /* Fall through */
 
#define __RESTRICT
 
#define __extension__
 
#define inline   __inline__
 
#define __build_assert(cond)
 Assert a build-time dependency.
 
#define __build_assert_or_zero(cond)
 Assert a build-time dependency.
 
#define __array_size(arr)
 Get the number of elements in a visible array.
 
#define _array_size_chk(arr)
 
#define __stringify(arg)
 Create a string from the argument.
 
#define __is_defined(macro)
 Check if a macro is defined to 1.
 

Detailed Description

Various common macros used throughout the codebase.

This file contains various convenience macros. Mostly compiler attribute directives, as well as other language defines, and useful language extensions.

Author
Megan Potter
Lawrence Sebald
Falco Girgis
Donald Haase