Added math.h, stdlib.h, float.h, and stbool.h to std folder (and all their implementations). Opted to NOT implement malloc/free/etc. in favor of having our own functions init_mem, grow_mem, and get_mem.
This commit is contained in:
20
std/stdbool.h
Normal file
20
std/stdbool.h
Normal file
@@ -0,0 +1,20 @@
|
||||
/*
|
||||
File: stdbool.h
|
||||
Author: Taylor Robbins
|
||||
Date: 08\28\2025
|
||||
*/
|
||||
|
||||
#ifndef _STDBOOL_H
|
||||
#define _STDBOOL_H
|
||||
|
||||
#if LANGUAGE_IS_C
|
||||
|
||||
#define true 1
|
||||
#define false 0
|
||||
#define bool _Bool
|
||||
|
||||
#endif
|
||||
|
||||
#define __bool_true_false_are_defined 1
|
||||
|
||||
#endif // _STDBOOL_H
|
||||
Reference in New Issue
Block a user