danmar/simplecpp

End of double #define not recognized

Closed this issue · 0 comments

#define MIN_LON  -180.
#define MAX_LON   180.

extern void g();

void f(double *lon) {
    if ((*lon < MIN_LON) || (*lon > MAX_LON)) {}
}

Output:

void g ( ) ;

void f ( double * lon ) {
if ( ( * lon <  -  180. ) || ( * lon >  180.extern ) ) { }
}