X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=includes%2Fstdbool.h;h=0e1c2a5ebbe95bd0b14c09242a757ab938d60e1f;hb=b18c386cb4b41de41afdb52de98b46b82f00f0ca;hp=734a52dd99733fde260901db7ad395f2306fd3bf;hpb=1e221deb9ee725a14b3656f94e2763f8faeb18dc;p=pdclib diff --git a/includes/stdbool.h b/includes/stdbool.h index 734a52d..0e1c2a5 100644 --- a/includes/stdbool.h +++ b/includes/stdbool.h @@ -4,12 +4,28 @@ // Public Domain C Library - http://pdclib.sourceforge.net // This code is Public Domain. Use, modify, and redistribute at will. // ---------------------------------------------------------------------------- -// TODO +// Boolean type and values // ---------------------------------------------------------------------------- #ifndef __STDBOOL_H #define __STDBOOL_H __STDBOOL_H -// TODO +// ---------------------------------------------------------------------------- +// MACROS + +#define __bool_true_false_are_defined 1 + +#ifndef __cplusplus + +#define bool _Bool +#define false 0 +#define true 1 + +// ---------------------------------------------------------------------------- +// TYPEDEFS + +typedef int bool; + +#endif // __cplusplus #endif // __STDBOOL_H