This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Error Messages


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"

Regards,

    Liza


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]