title: CPPUnit access defines in c files
body: <p>I am doing some unit test on c code using CPPUnit.</p>
  
  <p>In the code to test there are some defines in c files and not in the h files. So they are not accessable from other places in the code. Many of the defines are used to set the size of arrays.</p>
  
  <p>When I do the unit tests I would like to make them so dynamical as possible meaning that they will still work when the defines are changed before the final release. I've made some loops and stuff to go through the functions using the arrays, so that I test as many times as there are entries in an array etc. But until now I use a copy of the define in my unit test code. So if the defines are changed in the code to test, then they are not changed in the unit test code.</p>
  
  <p>So my main question is, if there is some trick to use just for the unit testing purpose to somehow making the defines global or anything without changing the original source code just to fit the use of unit testing. Maybe a compiler setting? (I am using visual studio 2008).</p>