2024-12-30 05:22:12 -07:00
\page standard-bool ARC_Bool
2024-12-31 00:58:45 -07:00
# Basic Overview
2024-12-30 05:22:12 -07:00
The ::ARC_Bool type simple sets ::ARC_Bool to the `stdbool.h` `bool` type, ::ARC_True to true, and ::ARC_False to false. This type exists so that it can be overriden if a different boolean type should be used (like with opengl)
2024-12-31 00:58:45 -07:00
The API Reference for ::ARC_Bool can be found here: arc/std/bool.h
# Basic Example
2024-12-30 05:22:12 -07:00
```c
2025-03-28 04:12:57 -06:00
#include <archeus.h>
2024-12-30 05:22:12 -07:00
ARC_Bool example = ARC_True;
//this example is very pedantic, saying `== ARC_True` isn't required, just recommended
if(example == ARC_True){
//this will be executed
}
```
2024-12-31 00:58:45 -07:00
# Override Example
2024-12-30 05:22:12 -07:00
```c
#include <stdint.h>
//this should be called at the start of the program
#define ARC_BOOL_OVERRIDE
#define ARC_Bool uint8_t
#define ARC_True 1
#define ARC_False 0
2025-03-28 04:12:57 -06:00
#include <archeus.h>
2024-12-30 05:22:12 -07:00
ARC_Bool example = ARC_False;
if(example != ARC_True){
//this will be executed
}
```