You've already forked ultrasm64-2
mirror of
https://github.com/HackerN64/ultrasm64-2.git
synced 2026-01-21 10:38:08 -08:00
subrepo: subdir: "lib/libpl2" merged: "58e4fa38" upstream: origin: "https://gitlab.com/parallel-launcher/libpl2" branch: "master" commit: "58e4fa38" git-subrepo: version: "0.4.9" origin: "https://github.com/ingydotnet/git-subrepo" commit: "4f60dd7"
47 lines
811 B
C++
47 lines
811 B
C++
#ifndef LIBPL2_STDDEF_
|
|
#define LIBPL2_STDDEF_
|
|
|
|
#if __GNUC__ >= 14
|
|
typedef int __attribute__((hardbool)) lpl2_bool;
|
|
#else
|
|
typedef int lpl2_bool;
|
|
#endif
|
|
|
|
#ifndef TRUE
|
|
#define TRUE 1
|
|
#endif
|
|
|
|
#ifndef FALSE
|
|
#define FALSE 0
|
|
#endif
|
|
|
|
#ifndef NULL
|
|
#ifdef __cplusplus
|
|
#if __cplusplus >= 199711L
|
|
#define NULL nullptr
|
|
#else
|
|
#define NULL 0
|
|
#endif
|
|
#else
|
|
#if __STDC_VERSION__ >= 202311L
|
|
#define NULL nullptr
|
|
#else
|
|
#define NULL ((void*)0)
|
|
#endif
|
|
#endif
|
|
#endif
|
|
|
|
#ifdef __cplusplus
|
|
#define lpl2_static_assert( expr ) static_assert( expr )
|
|
#else
|
|
#if __STDC_VERSION__ >= 202311L
|
|
#define lpl2_static_assert( expr ) static_assert( expr )
|
|
#elif __STDC_VERSION__ >= 201112L
|
|
#define lpl2_static_assert( expr ) _Static_assert( expr )
|
|
#else
|
|
#define lpl2_static_assert( expr )
|
|
#endif
|
|
#endif
|
|
|
|
#endif
|