提交 ded22fef 编写于 作者: M mvandervoord

Make memory handling optional in fixtures

上级 37a0f718
......@@ -148,6 +148,7 @@ def run_tests
load_configuration($cfg_file)
test_defines = ['TEST']
$cfg['compiler']['defines']['items'] = [] if $cfg['compiler']['defines']['items'].nil?
$cfg['compiler']['defines']['items'] << "UNITY_FIXTURE_NO_EXTRAS"
# Get a list of all source files needed
src_files = Dir["#{__dir__}/src/*.c"]
......
......@@ -12,6 +12,10 @@
#include "unity_internals.h"
#include "unity_fixture_internals.h"
#ifndef UNITY_FIXTURE_NO_EXTRAS
#include "unity_memory.h"
#endif
int UnityMain(int argc, const char* argv[], void (*runAllTests)(void));
......
......@@ -3,7 +3,7 @@ ifeq ($(shell uname -s), Darwin)
CC = clang
endif
#DEBUG = -O0 -g
CFLAGS += -std=c99 -pedantic -Wall -Wextra -Werror
CFLAGS += -std=c99 -pedantic -Wall -Wextra -Werror -DUNITY_FIXTURE_NO_EXTRAS
CFLAGS += $(DEBUG)
SRC = ../src/unity_fixture.c \
../../../src/unity.c \
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册