[Top][All Lists]

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

[Devel] more on new error scheme

From: Werner LEMBERG
Subject: [Devel] more on new error scheme
Date: Wed, 16 May 2001 15:50:08 +0200 (CEST)

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



reply via email to

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