freetype-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Devel] more on new error scheme


From: Tom Kacvinsky
Subject: Re: [Devel] more on new error scheme
Date: Wed, 16 May 2001 10:47:30 -0400 (EDT)

The macros look good, Werner.  I say go with them...

Tom

On Wed, 16 May 2001, Werner LEMBERG wrote:

>
> I'm still hesitating to implement my proposed scheme.
>
> For applications, the following changes would be necessary:
>
>   if ( error & 0xFF == FT_Err_... )
>              ^^^^^^
>
> Is this acceptable?  Which real programs actually use FreeType errors?
> A better looking way is probably
>
>   if ( FT_ERROR( error ) == FT_Err_Unknown_File_Format )
>     ...
>
> and similarly (ANDing with 0xFF00)
>
>   if ( FT_MODULE( error ) == FT_Mod_Err_Cache )
>     ...
>
> to get the module in which the error has happened
>
>
> Comments?
>
>
>     Werner
>
> _______________________________________________
> Devel mailing list
> address@hidden
> http://www.freetype.org/mailman/listinfo/devel
>




reply via email to

[Prev in Thread] Current Thread [Next in Thread]