[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Idea: numbered error messages
- From: Adriano Ferreira <a.r.ferreira@...>
- Date: Fri, 4 Feb 2005 09:36:19 -0200
To separate error messages from the C source code seems to me a sound
idea, which makes localisation easier (as Andy said). An alternative
approach which can look nicer for the Lua authors instead of using
defines like
> #define LERR01 "stack overflow (#01)"
would be to use more aptly named macros as in
#define LERR_STACK_OVERFLOW "stack overflow (#01)"
It would leave the code as readable as it is today.
Best regards,
Adriano.
On Fri, 04 Feb 2005 02:33:51 -0800 (PST), Andy Stark
<astark@blackpoolsixth.ac.uk> wrote:
>
> But while we are looking at error messages, it would also be a good idea
> to take the error strings from the C source files and put them into their
> own header file called "lerrmsg.h".