introducing release macro

This commit is contained in:
_N3m0 2024-03-14 09:27:48 +01:00
parent ba3ec4c097
commit 8a2ac7fb89
2 changed files with 4 additions and 2 deletions

View File

@ -2,7 +2,7 @@ all:
gcc -Wall -Wextra -ggdb main.c -o mineur -lraylib
release:
gcc -Wall -Wextra -O3 main.c -o mineur -lraylib
gcc -DRELEASE -Wall -Wextra -O3 main.c -o mineur -lraylib
run: all
./mineur

4
main.c
View File

@ -273,7 +273,9 @@ int main(void)
srand(time(NULL));
SetConfigFlags(FLAG_WINDOW_RESIZABLE);
// SetTraceLogLevel(LOG_ERROR);
#ifdef RELEASE
SetTraceLogLevel(LOG_ERROR);
#endif // RELEASE
InitWindow(screen_width, screen_height, "mineur");
SetTargetFPS(60);