diff options
author | Mitya Selivanov <automainint@guattari.tech> | 2024-08-12 20:57:04 +0200 |
---|---|---|
committer | Mitya Selivanov <automainint@guattari.tech> | 2024-08-12 20:57:04 +0200 |
commit | 90d96448ad8d6fd3a133ead74d61dcc52aa2de82 (patch) | |
tree | fb5228bad8c2ed42df900e3a677c7ed8f4b1c12e | |
parent | 1d159ce047d66a05031fa5e5baa23a97039fcda3 (diff) | |
download | reduced_system_layer-90d96448ad8d6fd3a133ead74d61dcc52aa2de82.zip |
Add include guards
-rwxr-xr-x | reduced_system_layer.c | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/reduced_system_layer.c b/reduced_system_layer.c index 1e360a1..decd327 100755 --- a/reduced_system_layer.c +++ b/reduced_system_layer.c @@ -68,6 +68,15 @@ exit $? # */ #endif // ================================================================ // +// Include guards +// +// ================================================================ + +#ifndef REDUCED_SYSTEM_LAYER_HEADER_GUARD_ +#define REDUCED_SYSTEM_LAYER_HEADER_GUARD_ + +// ================================================================ +// // Basic declarations // // ================================================================ @@ -222,6 +231,10 @@ i64 p_send(u16 slot, IP_Address address, i64 size, u8 *data, u16 *local_port); Platform platform = {0}; // ================================================================ + +#endif // REDUCED_SYSTEM_LAYER_HEADER_GUARD_ + +// ================================================================ // // WRITE YOUR CODE HERE // @@ -258,6 +271,12 @@ i32 main(i32 argc, c8 **argv) { // PLATFORM IMPLEMENTATION // // ================================================================ + +#ifndef REDUCED_SYSTEM_LAYER_HEADER +#ifndef REDUCED_SYSTEM_LAYER_IMPLEMENTATION_GUARD_ +#define REDUCED_SYSTEM_LAYER_IMPLEMENTATION_GUARD_ + +// ================================================================ // // Utilities // @@ -1118,3 +1137,8 @@ void p_queue_sound(i64 delay, i64 num_samples, f32 *samples) { } #endif + +// ================================================================ + +#endif // REDUCED_SYSTEM_LAYER_IMPLEMENTATION_GUARD_ +#endif // REDUCED_SYSTEM_LAYER_HEADER |