This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Error Messages
- From: "Liza Atkin" <latkin at neomagic dot com>
- To: "Gcc-Help-FAQ" <gcc-help at gcc dot gnu dot org>
- Date: Sun, 20 Feb 2005 13:52:17 +0200
- Subject: 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