diff options
author | Nao Pross <naopross@thearcway.org> | 2018-11-24 18:52:22 +0100 |
---|---|---|
committer | Nao Pross <naopross@thearcway.org> | 2018-11-24 18:52:22 +0100 |
commit | 9892e2b286bcb01dfce2bd723d760c4e64cd0803 (patch) | |
tree | 348d06389e7c700206787102bee18c4945707004 /Makefile | |
parent | Call Game.update() on Scene loop (diff) | |
download | Subconscious-java-9892e2b286bcb01dfce2bd723d760c4e64cd0803.tar.gz Subconscious-java-9892e2b286bcb01dfce2bd723d760c4e64cd0803.zip |
Enable use of assertions
Assertions are faster and normally not enabled, so they are a good to
debug when things that *should* never happen, happen.
Diffstat (limited to '')
-rw-r--r-- | Makefile | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -2,6 +2,9 @@ MAINCLASS := subconscious.Subconscious SOURCES := $(shell find src -iname '*.java') +# debug or release mode +DEBUG=1 + # java compiler configuraton JAVAC := javac JAVAC_ARGS := -Xlint:all \ @@ -19,6 +22,9 @@ JAVA_ARGS := -cp ../lib/gson-2.6.2.jar:. -Xmx2G ifeq ($(USE_JDB),1) JAVA_ARGS += -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=8000 endif +ifeq ($(DEBUG),1) + JAVA_ARGS += -enableassertions +endif # recipes |