Miscellaneous Macros

Name

Miscellaneous Macros -- specialised macros which are not used often.

Synopsis

#include <tiffep.h> (macros.h)


#define     TRY                       (val)

Description

These macros provide more specialized features which are not needed so often by application programmers. Useful even !

Details

 

TRY()

#define     TRY(expression)

This macro checks the result returned by a function. If the result is non zero then the macro return with this value else it does nothing.
This macro is equivalent to:

{
    int aaaa_;
    if((aaaa_ = (x))) then return aaaa_;
}
 
expression : an exression (a function for instance) which returns an integer value.