Error Messages

Liza Atkin latkin@neomagic.com
Mon Feb 21 15:55:00 GMT 2005


Hi!

I want that when a user in C code tries to define any type other 
then "int" to abort the compilation and print an error message.

For example:

int test(int);
int test(int i)
{
	float b;
}

the test function will crush upon compilation and output something like:
"Trying to define/use unallowed type in test finction in x.c file: 238"

Where can I do this change?

Regards,

    Liza



More information about the Gcc-help mailing list