I am writing a test to see the time difference on different buffer sizes when reading from a stream. Instead of changing the buffer size everywhere in the code, it would be nice to have some preprocessor doing it for me so that I will only need to change the value in one place.
An example of what I'm thinking of is writing a C macro define BUFFER 1024
, and when creating a array using it to define the size.