1
0
Fork 0
mirror of https://github.com/ErikAndren/cue2pops-mac.git synced 2025-04-19 15:38:04 +02:00

Activate DEBUG variable upon debug build

This commit is contained in:
Erik Andrén Zachrisson 2015-10-30 23:11:40 +01:00
parent 45cf9667eb
commit 7b6207bb9f
2 changed files with 7 additions and 2 deletions

View file

@ -4,7 +4,7 @@ SRC = cue2pops.c
CC = gcc
CFLAGS = -Wall -Wextra
CFLAGS_DEBUG = $(CFLAGS) -O0 -g
CFLAGS_DEBUG = $(CFLAGS) -O0 -g -DDEBUG
TARGET = cue2pops

View file

@ -10,7 +10,12 @@
#include <inttypes.h>
#include <time.h>
int debug = 0; // Else than zero, printf some dbg stuff
#ifdef DEBUG
int debug = 1;
#elif
int debug = 0;
#endif
int batch = 0; // Else than zero, user prompt is disabled and CDRWIN image fix is ENABLED. Doesn't halt on anything. Suitable for batch execution.
FILE *file, *leech; //file is used for opening the input cue and the output file, leech is used for opening the BIN that's attached to the cue.