benkasminbullock/cfunctions

Initializer in verbatim section should produce a warning

Closed this issue · 1 comments

#if HEADER
int j = 10;
#endif

should produce a warning, since the user probably did not intend to have the initializer copied in to the header, and it will be deleted from the C file compilation due to the wrapper.

This was resolved with the following commit:

commit d75c086
Author: Ben Bullock benkasminbullock@gmail.com
Date: Fri Apr 28 13:05:11 2017 +0900

Produce error upon finding initialisers in verbatim copying