gml_ErrorMessage.h File Reference


Detailed Description

An object that stores an error message and manages memory for it.

#include "gml/base/gml_Types.h"

Go to the source code of this file.


Functions

GML_EXTERN_C void gml_ErrorMessageCreateIfNecessary (char **returnedError, char *message)
 Does nothing if returnedError is NULL.

Function Documentation

GML_EXTERN_C void gml_ErrorMessageCreateIfNecessary ( char **  returnedError,
char *  message 
)

Does nothing if returnedError is NULL.

If returnedError is not NULL, allocates enough memory to store message and let <*returnedError> point to this memory, copies message into this memory. The caller is responsible to call "free ((void*)*returnedError)" when the error message is not more needed.

Generated on Tue Jun 12 14:03:28 2007 for gml by Doxygen 1.5.2.