Main Page   Modules   Class Hierarchy   Alphabetical List   Compound List   Compound Members  

FTK utility macros and defines.

Compounds

Defines


Define Documentation

#define _ERRMSG      _SI_PRINTF(_SI_TEXT("ERROR : %s\n"),x);
 

Prints error message x. Print location is platform dependent.

#define _MSG      _SI_PRINTF(_SI_TEXT("MSG : %s\n"),x);
 

Prints message x. Print location is platform dependent.

#define _SI_CALL x,
     { if (result==SI_SUCCESS) { result = x;if(result != SI_SUCCESS){_ERRMSG(y);}}}
 

If result is SI_SUCCESS, then calls the function x, and assigns the the return to result. If the result is not SI_SUCCESS, prints out the error message y. result must be a defined varaible.

#define _SI_DELETE ptr       { if ( ptr != NULL ) { delete ptr; ptr = NULL; } }
 

Deletes ptr, if it is not NULL, and then assigns ptr to NULL.

#define _SI_DELETE_ARRAY ptr       {if ( ptr != NULL ) { delete [] ptr; ptr = NULL; } }
 

Deletes the array ptr, if it is not NULL, and then assigns ptr to NULL.

#define _SI_NEW x,
     { x = new y; _SI_ASSERT( x != NULL ); }
 

Creates a new instance of y and assigns it to x, making sure it is not NULL.

© Copyright 2001-2003 Avid Technology, Inc. All rights reserved.

© Copyright 2001-2003 Avid Technology, Inc. All rights reserved.