Merge pull request #1 from DanteFalzone0/patch-1
Add option for debugging messages
This commit is contained in:
@@ -2,6 +2,15 @@ USING_VALGRIND=0
|
|||||||
|
|
||||||
FLAGS="-L3p/libs/ -I3p/include/ -Wall -Wextra -g -DUSING_VALGRIND=$USING_VALGRIND"
|
FLAGS="-L3p/libs/ -I3p/include/ -Wall -Wextra -g -DUSING_VALGRIND=$USING_VALGRIND"
|
||||||
|
|
||||||
|
# pass `--debug` to this script to enable debugging messages
|
||||||
|
while test $# != 0
|
||||||
|
do
|
||||||
|
case "$1" in
|
||||||
|
--debug) FLAGS="$FLAGS -DDEBUG" ;;
|
||||||
|
esac
|
||||||
|
shift
|
||||||
|
done
|
||||||
|
|
||||||
mkdir temp
|
mkdir temp
|
||||||
|
|
||||||
mkdir temp/utils
|
mkdir temp/utils
|
||||||
|
|||||||
@@ -491,7 +491,8 @@ static inline TokenKind current(Context *ctx)
|
|||||||
return current_token(ctx)->kind;
|
return current_token(ctx)->kind;
|
||||||
}
|
}
|
||||||
|
|
||||||
#if 0
|
// Compile with -DDEBUG to get debugging messages printed to stderr.
|
||||||
|
#ifdef DEBUG
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user