From cdd84f25ab1d2a57ee5c7b4c954e35a8d7e2dca3 Mon Sep 17 00:00:00 2001 From: rtk0c Date: Sun, 29 May 2022 22:04:13 -0700 Subject: Changeset: 50 Fix buildsystem mistakes in changeset 49, add debug print option --- buildtools/codegen/CodegenConfig.hpp | 4 +++- buildtools/codegen/main.cpp | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) (limited to 'buildtools/codegen') diff --git a/buildtools/codegen/CodegenConfig.hpp b/buildtools/codegen/CodegenConfig.hpp index 4ed576a..b9dc56c 100644 --- a/buildtools/codegen/CodegenConfig.hpp +++ b/buildtools/codegen/CodegenConfig.hpp @@ -1,6 +1,8 @@ #pragma once -#define CODEGEN_DEBUG_PRINT 1 +#ifndef CODEGEN_DEBUG_PRINT +# define CODEGEN_DEBUG_PRINT 0 +#endif #if CODEGEN_DEBUG_PRINT # define DEBUG_PRINTF(...) printf(__VA_ARGS__) diff --git a/buildtools/codegen/main.cpp b/buildtools/codegen/main.cpp index e759c31..298f19e 100644 --- a/buildtools/codegen/main.cpp +++ b/buildtools/codegen/main.cpp @@ -674,7 +674,7 @@ where : the directory to write generated contents to. This will N } const char* outputDir = argv[1]; - DEBUG_PRINTF("Outputting to directory %s.\n", outputDirPath); + DEBUG_PRINTF("Outputting to directory %s.\n", outputDir); { char path[2048]; -- cgit v1.2.3-70-g09d2