/home/mandrake/rpm/BUILD/sc68-2.2.1/emu68/error68.h File Reference

Error message handler. More...

Go to the source code of this file.

Functions

int EMU68error_add (char *format,...)
 Push formatted error message.
const char * EMU68error_get (void)
 Pop last error message.

Detailed Description

Error message handler.

Author:
Benjamin Gerard <ben@sashipa.com>
Date:
1999/03/13
Id
error68.h,v 2.1 2003/08/25 20:15:51 benjihan Exp

EMU68 error handling consists on a fixed size stack of messages. When an EMU68 function fails, it stores a description message for the error and returns a negative number. If error stack is full, the older stacked message is removed.


Function Documentation

int EMU68error_add ( char *  format,
  ... 
)

Push formatted error message.

The EMU68error_add() format error message and push it in error stack. On overflow the older message is lost.

Parameters:
format printf() like format string.
Returns:
error-code
Return values:
0xDEAD0xxx,where xxx is a random value
const char* EMU68error_get ( void   ) 

Pop last error message.

Retrieve and remove last error message from error stack.

Returns:
Last pushed error message.
Return values:
0 Empty message stack, no more message.
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines
Generated on Thu Sep 16 07:45:37 2010 for sc68fordevelopers by  doxygen 1.6.3