Welcome to the Builder Academy

Question What Portable Version Is Being Looked For?

More
Today 01:05 - Today 01:09 #11086 by krell
In structs.h there is a set of type definitions for boolean that looks like this:
Code:
#if !defined(__cplusplus)      /* Anyone know a portable method? */ #if !defined(__STDC_VERSION__) || __STDC_VERSION__ < 202311L typedef char bool;    /**< Technically 1 signed byte; vals should only = TRUE or FALSE. */ #endif                  /* C23 and later provide bool as a keyword. */ #endif

What does that mean, portable version? For boolean, or defining C++? I'm assuming boolean.
Last edit: Today 01:09 by krell.

Please Log in or Create an account to join the conversation.

Time to create page: 0.266 seconds