[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Devel] new error scheme
From: |
Werner LEMBERG |
Subject: |
Re: [Devel] new error scheme |
Date: |
Fri, 15 Jun 2001 23:03:13 +0200 (CEST) |
> OK, the main problem is that the "FT_" prefix has disappeared from
> the error code constants definitions.
Ah, yes, I've missed that. What about introducing an additional layer
like this:
#ifdef FT_CONFIG_OPTION_USE_MODULE_ERRORS
#define FT_( error ) error
#else
#define FT_( error ) FT_Err_ ## error
#define FT_NOERRORDEF FT_ERRORDEF
#endif
...
FT_NOERRORDEF( FT_( Ok ), 0x00, \
"no error" )
FT_ERRORDEF( FT_( Cannot_Open_Resource ), 0x01, \
"cannot open resource" )
...
I think this should make it possible to retain backwards
compatibility.
Werner