HGE::System_GetErrorMessage

Returns last occured HGE error description.

char *System_GetErrorMessage();

Return value

Returns pointer to a string that contains last occured error description.

Remarks

Use System_GetErrorMessage to get the error description when any of the HGE function fails. Usually you wouldn't try to recover but just display a message and exit, so this is the way.

If HGE_LOGFILE system state was set, the error messages are also written to log.

Requirements

Header: hge.h
Import library: hge.lib