diff --git a/src/Makefile b/src/Makefile index 0e063a9..cea3e6f 100644 --- a/src/Makefile +++ b/src/Makefile @@ -16,7 +16,7 @@ CORE_CC = gcc ifeq ($(RELEASE), 1) CORE_CFLAGS = --std=c17 --pedantic -O3 -DASSET_FILE_NAME=\"$(notdir $(ASSET_OUTPUT))\" -D_GNU_SOURCE=1 $(shell pkg-config --cflags sdl3) # RELEASE else -CORE_CFLAGS = --std=c17 --pedantic -O0 -g -DDEBUG=2 -DASSET_FILE_NAME=\"$(notdir $(ASSET_OUTPUT))\" -D_GNU_SOURCE=1 $(shell pkg-config --cflags sdl3) \ +CORE_CFLAGS = --std=c17 --pedantic -O1 -g -DDEBUG=2 -DASSET_FILE_NAME=\"$(notdir $(ASSET_OUTPUT))\" -D_GNU_SOURCE=1 $(shell pkg-config --cflags sdl3) \ -Wall -Wno-missing-braces -Wextra -Wno-missing-field-initializers \ -Wformat=2 -Wswitch-default -Wswitch -Wcast-align \ -Wpointer-arith -Wbad-function-cast -Wstrict-overflow=5 \ diff --git a/src/event_bus.c b/src/event_bus.c index 51a310c..b7aa9d4 100644 --- a/src/event_bus.c +++ b/src/event_bus.c @@ -69,6 +69,8 @@ inline int event_bus_remove_topic(size_t id) { if(linked_list_remove_if(&game.event_bus.topics, condition_is_topic_id, &id)) return_failure_int; + debug_printf("Removed topic with id : %lu", id); + return EXIT_SUCCESS; }