CMOCK_MEM_ALIGN should not change depending on #include order.

The value of CMOCK_MEM_ALIGN changed depending on whether unity.h
or cmock.h was included first.  Since cmock_internals.h uses
features from unity.h, it should include unity.h.
This commit is contained in:
John Lindgren
2019-10-30 10:14:30 -04:00
parent bb3e821eb2
commit 74fa13f6a0
2 changed files with 2 additions and 1 deletions
-1
View File
@@ -4,7 +4,6 @@
[Released under MIT License. Please refer to license.txt for details]
========================================== */
#include "unity.h"
#include "cmock.h"
//public constants to be used by mocks
+2
View File
@@ -7,6 +7,8 @@
#ifndef CMOCK_FRAMEWORK_INTERNALS_H
#define CMOCK_FRAMEWORK_INTERNALS_H
#include "unity.h"
//These are constants that the generated mocks have access to
extern const char* CMockStringOutOfMemory;
extern const char* CMockStringCalledMore;