diff --git a/asset_builder/errors.h b/asset_builder/errors.h index 9b5805b..27ee831 100644 --- a/asset_builder/errors.h +++ b/asset_builder/errors.h @@ -1,5 +1,5 @@ -#ifndef ERRORS_H -#define ERRORS_H +#ifndef _ERRORS_H +#define _ERRORS_H #include #include @@ -54,4 +54,4 @@ fputc('\n', stderr); \ } while (0) -#endif // ERRORS_H \ No newline at end of file +#endif // _ERRORS_H \ No newline at end of file diff --git a/asset_builder/image.h b/asset_builder/image.h index 30a1869..3f36a2f 100644 --- a/asset_builder/image.h +++ b/asset_builder/image.h @@ -1,9 +1,9 @@ -#ifndef IMAGE_H -#define IMAGE_H +#ifndef _IMAGE_H +#define _IMAGE_H #include #include int build_image(const char *input_file_name, FILE *output_file, uint32_t *asset_size); -#endif // IMAGE_H \ No newline at end of file +#endif // _IMAGE_H \ No newline at end of file diff --git a/asset_builder/map.h b/asset_builder/map.h index 5aec6f3..f99dafb 100644 --- a/asset_builder/map.h +++ b/asset_builder/map.h @@ -1,9 +1,9 @@ -#ifndef MAP_H -#define MAP_H +#ifndef _MAP_H +#define _MAP_H #include #include int build_map(const char *input_file_name, FILE *output_file, uint32_t *asset_size); -#endif // MAP_H \ No newline at end of file +#endif // _MAP_H \ No newline at end of file diff --git a/asset_builder/object.h b/asset_builder/object.h index 74bef79..a2b5548 100644 --- a/asset_builder/object.h +++ b/asset_builder/object.h @@ -1,8 +1,8 @@ -#ifndef OBJECT_H -#define OBJECT_H +#ifndef _OBJECT_H +#define _OBJECT_H #include int build_object(const char *input_file_path, FILE *output_file); -#endif // OBJECT_H \ No newline at end of file +#endif // _OBJECT_H \ No newline at end of file diff --git a/asset_builder/utils.h b/asset_builder/utils.h index 0a75cb1..053948b 100644 --- a/asset_builder/utils.h +++ b/asset_builder/utils.h @@ -1,5 +1,5 @@ -#ifndef UTILS_H -#define UTILS_H +#ifndef _UTILS_H +#define _UTILS_H #include @@ -7,4 +7,4 @@ int file_read(void *ptr, size_t size, size_t nb, FILE *file); int file_write(const void *ptr, size_t size, size_t nb, FILE *file); -#endif // UTILS_H \ No newline at end of file +#endif // _UTILS_H \ No newline at end of file diff --git a/core/asset_manager.h b/core/asset_manager.h index 3068fea..22efe4d 100644 --- a/core/asset_manager.h +++ b/core/asset_manager.h @@ -1,5 +1,5 @@ -#ifndef ASSET_MANAGER_H -#define ASSET_MANAGER_H +#ifndef _ASSET_MANAGER_H +#define _ASSET_MANAGER_H #include #include @@ -46,4 +46,4 @@ asset_t *asset_manager_load_asset(char *asset_name, asset_type_t asset_type); int asset_manager_let_go_asset(char *asset_name); asset_t *asset_manager_get_asset(char *asset_name); -#endif // ASSET_MANAGER_H \ No newline at end of file +#endif // _ASSET_MANAGER_H \ No newline at end of file diff --git a/core/camera.h b/core/camera.h index b401c08..fbbe7e9 100644 --- a/core/camera.h +++ b/core/camera.h @@ -1,5 +1,5 @@ -#ifndef CAMERA_H -#define CAMERA_H +#ifndef _CAMERA_H +#define _CAMERA_H #include "vector2d.h" @@ -13,4 +13,4 @@ void camera_init(void); void camera_update(void); -#endif // CAMERA_H \ No newline at end of file +#endif // _CAMERA_H \ No newline at end of file diff --git a/core/ecs.h b/core/ecs.h index fdb3031..f764da5 100644 --- a/core/ecs.h +++ b/core/ecs.h @@ -1,5 +1,5 @@ -#ifndef ECS_H -#define ECS_H +#ifndef _ECS_H +#define _ECS_H #include #include @@ -68,4 +68,4 @@ int entity_manager_update(void); int entity_manager_draw(void); int entity_manager_remove_entity(size_t id); -#endif // ECS_H \ No newline at end of file +#endif // _ECS_H \ No newline at end of file diff --git a/core/event_bus.h b/core/event_bus.h index 5a15a69..68fdf2b 100644 --- a/core/event_bus.h +++ b/core/event_bus.h @@ -1,5 +1,5 @@ -#ifndef EVENT_BUS_H -#define EVENT_BUS_H +#ifndef _EVENT_BUS_H +#define _EVENT_BUS_H #include #include "linked_list.h" @@ -35,4 +35,4 @@ int event_bus_publish(size_t id, void *arg); int event_bus_subscribe(size_t id, callback_t callback, void *data); int event_bus_unsubscribe(size_t id, callback_t callback); -#endif // EVENT_BUS_H \ No newline at end of file +#endif // _EVENT_BUS_H \ No newline at end of file diff --git a/core/game.h b/core/game.h index ff8d6d7..750f058 100644 --- a/core/game.h +++ b/core/game.h @@ -1,5 +1,5 @@ -#ifndef GAME_H -#define GAME_H +#ifndef _GAME_H +#define _GAME_H #include #include "display.h" @@ -42,4 +42,4 @@ void game_handle_event(void); int game_update(void); int game_render(void); -#endif // GAME_H \ No newline at end of file +#endif // _GAME_H \ No newline at end of file diff --git a/core/host/fxcg50/display.h b/core/host/fxcg50/display.h index 8f3e0e4..b344c06 100644 --- a/core/host/fxcg50/display.h +++ b/core/host/fxcg50/display.h @@ -1,5 +1,5 @@ -#ifndef DISPLAY_H -#define DISPLAY_H +#ifndef _DISPLAY_H +#define _DISPLAY_H #include #include "texture.h" @@ -20,4 +20,4 @@ int display_update(void); int display_draw_texture(texture_t *texture, const rect_t *src_rect, const rect_t *dst_rect, bool flip); int display_draw_frect(const frect_t *frect, unsigned int r, unsigned int g, unsigned int b, unsigned int a); -#endif // DISPLAY_H \ No newline at end of file +#endif // _DISPLAY_H \ No newline at end of file diff --git a/core/host/fxcg50/inputs.h b/core/host/fxcg50/inputs.h index 92d1b67..fdf7501 100644 --- a/core/host/fxcg50/inputs.h +++ b/core/host/fxcg50/inputs.h @@ -1,5 +1,5 @@ -#ifndef KEYBOARD_H -#define KEYBOARD_H +#ifndef _INPUTS_H +#define _INPUTS_H #include "keycodes.h" @@ -14,4 +14,4 @@ typedef struct inputs_t { bool keys[MAX_KEYCODES]; } inputs_t; -#endif // KEYBOARD_H \ No newline at end of file +#endif // _INPUTS_H \ No newline at end of file diff --git a/core/host/fxcg50/keycodes.h b/core/host/fxcg50/keycodes.h index 113e16a..f80878a 100644 --- a/core/host/fxcg50/keycodes.h +++ b/core/host/fxcg50/keycodes.h @@ -1,5 +1,5 @@ -#ifndef KEYCODES_H -#define KEYCODES_H +#ifndef _KEYCODES_H +#define _KEYCODES_H #include @@ -12,4 +12,4 @@ #define INPUT_EVENT_KEY_DOWN KEYEV_DOWN #define INPUT_EVENT_QUIT 0xFF -#endif // KEYCODES_H \ No newline at end of file +#endif // _KEYCODES_H \ No newline at end of file diff --git a/core/host/fxcg50/memory_alloc.h b/core/host/fxcg50/memory_alloc.h index ef8e8b6..88b12d1 100644 --- a/core/host/fxcg50/memory_alloc.h +++ b/core/host/fxcg50/memory_alloc.h @@ -1,6 +1,6 @@ -#ifndef MEMORY_ALLOC_H -#define MEMORY_ALLOC_H +#ifndef _MEMORY_ALLOC_H +#define _MEMORY_ALLOC_H #include -#endif // MEMORY_ALLOC_H \ No newline at end of file +#endif // _MEMORY_ALLOC_H \ No newline at end of file diff --git a/core/host/fxcg50/texture.h b/core/host/fxcg50/texture.h index ffa870a..d92649b 100644 --- a/core/host/fxcg50/texture.h +++ b/core/host/fxcg50/texture.h @@ -1,5 +1,5 @@ -#ifndef TEXTURE_H -#define TEXTURE_H +#ifndef _TEXTURE_H +#define _TEXTURE_H #include @@ -13,4 +13,4 @@ typedef bopti_image_t texture_t; texture_t *load_texture(void); void destroy_texture(texture_t *texture); -#endif // TEXTURE_H \ No newline at end of file +#endif // _TEXTURE_H \ No newline at end of file diff --git a/core/host/fxcg50/update_time.h b/core/host/fxcg50/update_time.h index 0b22fb9..60f7554 100644 --- a/core/host/fxcg50/update_time.h +++ b/core/host/fxcg50/update_time.h @@ -1,6 +1,6 @@ -#ifndef TIME_H -#define TIME_H +#ifndef _UPDATE_TIME_H +#define _UPDATE_TIME_H void update_time(void); -#endif // TIME_H \ No newline at end of file +#endif // _UPDATE_TIME_H \ No newline at end of file diff --git a/core/host/fxcg50/vector2d.h b/core/host/fxcg50/vector2d.h index 5370552..f57b6e6 100644 --- a/core/host/fxcg50/vector2d.h +++ b/core/host/fxcg50/vector2d.h @@ -1,5 +1,5 @@ -#ifndef VECTOR2D_H -#define VECTOR2D_H +#ifndef _VECTOR2D_H +#define _VECTOR2D_H #include #include @@ -160,4 +160,4 @@ float lerp(float a, float b, float s); */ float lerp_time(float a, float b, float s, float t); -#endif // VECTOR2D_H \ No newline at end of file +#endif // _VECTOR2D_H \ No newline at end of file diff --git a/core/host/linux/display.h b/core/host/linux/display.h index d881e7a..211540b 100644 --- a/core/host/linux/display.h +++ b/core/host/linux/display.h @@ -1,5 +1,5 @@ -#ifndef DISPLAY_H -#define DISPLAY_H +#ifndef _DISPLAY_H +#define _DISPLAY_H #include #include "texture.h" @@ -28,4 +28,4 @@ int display_update(void); int display_draw_texture(texture_t *texture, const rect_t *src_rect, const rect_t *dst_rect, bool flip); int display_draw_frect(const frect_t *frect, unsigned int r, unsigned int g, unsigned int b, unsigned int a); -#endif // DISPLAY_H \ No newline at end of file +#endif // _DISPLAY_H \ No newline at end of file diff --git a/core/host/linux/inputs.h b/core/host/linux/inputs.h index 92d1b67..fdf7501 100644 --- a/core/host/linux/inputs.h +++ b/core/host/linux/inputs.h @@ -1,5 +1,5 @@ -#ifndef KEYBOARD_H -#define KEYBOARD_H +#ifndef _INPUTS_H +#define _INPUTS_H #include "keycodes.h" @@ -14,4 +14,4 @@ typedef struct inputs_t { bool keys[MAX_KEYCODES]; } inputs_t; -#endif // KEYBOARD_H \ No newline at end of file +#endif // _INPUTS_H \ No newline at end of file diff --git a/core/host/linux/keycodes.h b/core/host/linux/keycodes.h index 7ac90de..a92cc8a 100644 --- a/core/host/linux/keycodes.h +++ b/core/host/linux/keycodes.h @@ -1,5 +1,5 @@ -#ifndef KEYCODES_H -#define KEYCODES_H +#ifndef _KEYCODES_H +#define _KEYCODES_H #include @@ -16,4 +16,4 @@ #define INPUT_EVENT_KEY_DOWN SDL_EVENT_KEY_DOWN #define INPUT_EVENT_QUIT SDL_EVENT_QUIT -#endif // KEYCODES_H \ No newline at end of file +#endif // _KEYCODES_H \ No newline at end of file diff --git a/core/host/linux/memory_alloc.h b/core/host/linux/memory_alloc.h index ef8e8b6..88b12d1 100644 --- a/core/host/linux/memory_alloc.h +++ b/core/host/linux/memory_alloc.h @@ -1,6 +1,6 @@ -#ifndef MEMORY_ALLOC_H -#define MEMORY_ALLOC_H +#ifndef _MEMORY_ALLOC_H +#define _MEMORY_ALLOC_H #include -#endif // MEMORY_ALLOC_H \ No newline at end of file +#endif // _MEMORY_ALLOC_H \ No newline at end of file diff --git a/core/host/linux/texture.h b/core/host/linux/texture.h index 5901509..916f723 100644 --- a/core/host/linux/texture.h +++ b/core/host/linux/texture.h @@ -1,5 +1,5 @@ -#ifndef TEXTURE_H -#define TEXTURE_H +#ifndef _TEXTURE_H +#define _TEXTURE_H #include @@ -13,4 +13,4 @@ typedef SDL_Texture texture_t; texture_t *load_texture(void); void destroy_texture(texture_t *texture); -#endif // TEXTURE_H \ No newline at end of file +#endif // _TEXTURE_H \ No newline at end of file diff --git a/core/host/linux/update_time.h b/core/host/linux/update_time.h index 0b22fb9..60f7554 100644 --- a/core/host/linux/update_time.h +++ b/core/host/linux/update_time.h @@ -1,6 +1,6 @@ -#ifndef TIME_H -#define TIME_H +#ifndef _UPDATE_TIME_H +#define _UPDATE_TIME_H void update_time(void); -#endif // TIME_H \ No newline at end of file +#endif // _UPDATE_TIME_H \ No newline at end of file diff --git a/core/host/linux/vector2d.h b/core/host/linux/vector2d.h index 742f469..d00c0ee 100644 --- a/core/host/linux/vector2d.h +++ b/core/host/linux/vector2d.h @@ -1,5 +1,5 @@ -#ifndef VECTOR2D_H -#define VECTOR2D_H +#ifndef _VECTOR2D_H +#define _VECTOR2D_H #include #include @@ -150,4 +150,4 @@ float lerp(float a, float b, float s); */ float lerp_time(float a, float b, float s, float t); -#endif // VECTOR2D_H \ No newline at end of file +#endif // _VECTOR2D_H \ No newline at end of file diff --git a/core/linked_list.h b/core/linked_list.h index 1aee598..37339e4 100644 --- a/core/linked_list.h +++ b/core/linked_list.h @@ -1,5 +1,5 @@ -#ifndef LINKED_LIST_H -#define LINKED_LIST_H +#ifndef _LINKED_LIST_H +#define _LINKED_LIST_H #include #include @@ -280,4 +280,4 @@ int linked_list_for_each(const linked_list_t *linked_list, const action_t action */ void linked_list_insertion_sort(linked_list_t *linked_list, const condition_t condition, void *arg); -#endif // LINKED_LIST_H +#endif // _LINKED_LIST_H diff --git a/core/map.h b/core/map.h index eb53a68..3f0869a 100644 --- a/core/map.h +++ b/core/map.h @@ -1,5 +1,5 @@ -#ifndef MAP_H -#define MAP_H +#ifndef _MAP_H +#define _MAP_H #include #include "linked_list.h" @@ -45,4 +45,4 @@ int map_display_foreground(void); int map_display_hitboxes(void); #endif // DEBUG > 1 -#endif // MAP_H \ No newline at end of file +#endif // _MAP_H \ No newline at end of file diff --git a/src/components/animation_system.h b/src/components/animation_system.h index 9a59c9a..ad7424b 100644 --- a/src/components/animation_system.h +++ b/src/components/animation_system.h @@ -1,5 +1,5 @@ -#ifndef ANIMATION_SYSTEM_H -#define ANIMATION_SYSTEM_H +#ifndef _ANIMATION_SYSTEM_H +#define _ANIMATION_SYSTEM_H #include #include "ecs.h" @@ -27,4 +27,4 @@ int animation_system_destroy(component_t *system); int animation_system_apply_changes(component_t *system); -#endif // SPRITE_COMPONENT_H \ No newline at end of file +#endif // _SPRITE_COMPONENT_H \ No newline at end of file diff --git a/src/components/components.h b/src/components/components.h index e15df97..5b25146 100644 --- a/src/components/components.h +++ b/src/components/components.h @@ -1,5 +1,5 @@ -#ifndef COMPONENTS_H -#define COMPONENTS_H +#ifndef _COMPONENTS_H +#define _COMPONENTS_H #include "transform_component.h" #include "sprite_component.h" @@ -13,4 +13,4 @@ //#include "lua_component.h" // Add new components header file here -#endif // COMPONENTS_H \ No newline at end of file +#endif // _COMPONENTS_H \ No newline at end of file diff --git a/src/components/door_component.h b/src/components/door_component.h index 3380681..cfa33bd 100644 --- a/src/components/door_component.h +++ b/src/components/door_component.h @@ -1,5 +1,5 @@ -#ifndef DOOR_COMPONENT_H -#define DOOR_COMPONENT_H +#ifndef _DOOR_COMPONENT_H +#define _DOOR_COMPONENT_H #include "ecs.h" @@ -22,4 +22,4 @@ int door_component_destroy(component_t *component); int door_component_subscribe(component_t *component); -#endif // DOOR_COMPONENT_H \ No newline at end of file +#endif // _DOOR_COMPONENT_H \ No newline at end of file diff --git a/src/components/hitbox_component.h b/src/components/hitbox_component.h index 27b86c2..1fee689 100644 --- a/src/components/hitbox_component.h +++ b/src/components/hitbox_component.h @@ -1,5 +1,5 @@ -#ifndef HITBOX_COMPONENT_H -#define HITBOX_COMPONENT_H +#ifndef _HITBOX_COMPONENT_H +#define _HITBOX_COMPONENT_H #include #include "ecs.h" @@ -23,4 +23,4 @@ int hitbox_component_draw(const component_t *component); #endif int hitbox_component_destroy(component_t *component); -#endif // HITBOX_COMPONENT_H \ No newline at end of file +#endif // _HITBOX_COMPONENT_H \ No newline at end of file diff --git a/src/components/interact_component.h b/src/components/interact_component.h index 14e45e5..92c9b9c 100644 --- a/src/components/interact_component.h +++ b/src/components/interact_component.h @@ -1,5 +1,5 @@ -#ifndef INTERACT_COMPONENT_H -#define INTERACT_COMPONENT_H +#ifndef _INTERACT_COMPONENT_H +#define _INTERACT_COMPONENT_H #include "ecs.h" #include "vector2d.h" @@ -32,4 +32,4 @@ int interact_component_destroy(component_t *component); int interact_component_interact(component_t *component); -#endif // TRANSFORM_COMPONENT_H \ No newline at end of file +#endif // _TRANSFORM_COMPONENT_H \ No newline at end of file diff --git a/src/components/lever_component.h b/src/components/lever_component.h index 49b4a89..693d83b 100644 --- a/src/components/lever_component.h +++ b/src/components/lever_component.h @@ -1,5 +1,5 @@ -#ifndef LEVER_COMPONENT_H -#define LEVER_COMPONENT_H +#ifndef _LEVER_COMPONENT_H +#define _LEVER_COMPONENT_H #include "ecs.h" #include "vector2d.h" @@ -21,4 +21,4 @@ int lever_component_destroy(component_t *component); int lever_component_subscribe(component_t *component); -#endif // LEVER_COMPONENT_H \ No newline at end of file +#endif // _LEVER_COMPONENT_H \ No newline at end of file diff --git a/src/components/lua_component.h b/src/components/lua_component.h index 4a41be6..7120360 100644 --- a/src/components/lua_component.h +++ b/src/components/lua_component.h @@ -1,5 +1,5 @@ -#ifndef LUA_COMPONENT_H -#define LUA_COMPONENT_H +#ifndef _LUA_COMPONENT_H +#define _LUA_COMPONENT_H #include #include "ecs.h" @@ -16,4 +16,4 @@ int lua_component_draw(const component_t *component); #endif // DEBUG >= 2 int lua_component_destroy(component_t *component); -#endif // LUA_COMPONENT_H \ No newline at end of file +#endif // _LUA_COMPONENT_H \ No newline at end of file diff --git a/src/components/physics_system.h b/src/components/physics_system.h index 95ddf11..1a2e569 100644 --- a/src/components/physics_system.h +++ b/src/components/physics_system.h @@ -1,5 +1,5 @@ -#ifndef PHYSICS_SYSTEM_H -#define PHYSICS_SYSTEM_H +#ifndef _PHYSICS_SYSTEM_H +#define _PHYSICS_SYSTEM_H #include "ecs.h" #include "vector2d.h" @@ -18,4 +18,4 @@ int physics_system_init(component_t *component); int physics_system_update(component_t *component); int physics_system_destroy(component_t *component); -#endif // PHYSICS_SYSTEM_H \ No newline at end of file +#endif // _PHYSICS_SYSTEM_H \ No newline at end of file diff --git a/src/components/player_system.h b/src/components/player_system.h index 50a6ce7..8ad1549 100644 --- a/src/components/player_system.h +++ b/src/components/player_system.h @@ -1,5 +1,5 @@ -#ifndef PLAYER_SYSTEM_H -#define PLAYER_SYSTEM_H +#ifndef _PLAYER_SYSTEM_H +#define _PLAYER_SYSTEM_H #include "ecs.h" @@ -33,4 +33,4 @@ int player_system_init(component_t *component); int player_system_update(component_t *component); int player_system_destroy(component_t *component); -#endif // PLAYER_SYSTEM_H \ No newline at end of file +#endif // _PLAYER_SYSTEM_H \ No newline at end of file diff --git a/src/components/sprite_component.h b/src/components/sprite_component.h index 8591080..db32e17 100644 --- a/src/components/sprite_component.h +++ b/src/components/sprite_component.h @@ -1,5 +1,5 @@ -#ifndef SPRITE_COMPONENT_H -#define SPRITE_COMPONENT_H +#ifndef _SPRITE_COMPONENT_H +#define _SPRITE_COMPONENT_H #include "ecs.h" #include "asset_manager.h" @@ -20,4 +20,4 @@ int sprite_component_update(component_t *component); int sprite_component_draw(const component_t *component); int sprite_component_destroy(component_t *component); -#endif // SPRITE_COMPONENT_H \ No newline at end of file +#endif // _SPRITE_COMPONENT_H \ No newline at end of file diff --git a/src/components/transform_component.h b/src/components/transform_component.h index d231454..225efb2 100644 --- a/src/components/transform_component.h +++ b/src/components/transform_component.h @@ -1,5 +1,5 @@ -#ifndef TRANSFORM_COMPONENT_H -#define TRANSFORM_COMPONENT_H +#ifndef _TRANSFORM_COMPONENT_H +#define _TRANSFORM_COMPONENT_H #include "ecs.h" #include "vector2d.h" @@ -16,4 +16,4 @@ int transform_component_draw(const component_t *component); #endif // DEBUG >= 2 int transform_component_destroy(component_t *component); -#endif // TRANSFORM_COMPONENT_H \ No newline at end of file +#endif // _TRANSFORM_COMPONENT_H \ No newline at end of file