From d3eb31d96460814003616b5720266ddce916bf32 Mon Sep 17 00:00:00 2001 From: Ratstail91 Date: Wed, 7 Jun 2023 00:04:05 +1000 Subject: [PATCH] Added TOY_DISABLE_REPL option for compiling --- Repl.vcxproj | 6 ++++-- Toy.vcxproj | 2 ++ source/toy_common.c | 2 +- source/toy_common.h | 2 +- 4 files changed, 8 insertions(+), 4 deletions(-) diff --git a/Repl.vcxproj b/Repl.vcxproj index a284185..4d736c2 100644 --- a/Repl.vcxproj +++ b/Repl.vcxproj @@ -115,13 +115,15 @@ $(SolutionDir)/source;%(AdditionalIncludeDirectories) stdc17 - LIB_RUNNER_EXPORT + + stdc17 - LIB_RUNNER_EXPORT + + $(SolutionDir)/source;%(AdditionalIncludeDirectories) diff --git a/Toy.vcxproj b/Toy.vcxproj index 7dcbe29..385535c 100644 --- a/Toy.vcxproj +++ b/Toy.vcxproj @@ -132,6 +132,7 @@ + @@ -152,6 +153,7 @@ + diff --git a/source/toy_common.c b/source/toy_common.c index 8aed259..1898dca 100644 --- a/source/toy_common.c +++ b/source/toy_common.c @@ -15,7 +15,7 @@ STATIC_ASSERT(sizeof(unsigned char) == 1); STATIC_ASSERT(sizeof(unsigned short) == 2); STATIC_ASSERT(sizeof(unsigned int) == 4); -#ifndef TOY_EXPORT +#ifndef TOY_DISABLE_REPL //declare the singleton with default values Toy_CommandLine Toy_commandLine = { diff --git a/source/toy_common.h b/source/toy_common.h index f5edab5..7e06a18 100644 --- a/source/toy_common.h +++ b/source/toy_common.h @@ -28,7 +28,7 @@ #endif -#ifndef TOY_EXPORT +#ifndef TOY_DISABLE_REPL //for processing the command line arguments in the repl typedef struct {