#include "nedelement.h"
Go to the source code of this file.
Defines | |
#define | INTERNAL_ERROR0(context, msg) NEDInternalError(__FILE__,__LINE__,context,msg) |
#define | INTERNAL_ERROR1(context, msg, arg1) NEDInternalError(__FILE__,__LINE__,context,msg,arg1) |
#define | INTERNAL_ERROR2(context, msg, arg1, arg2) NEDInternalError(__FILE__,__LINE__,context,msg,arg1,arg2) |
#define | INTERNAL_ERROR3(context, msg, arg1, arg2, arg3) NEDInternalError(__FILE__,__LINE__,context,msg,arg1,arg2,arg3) |
Functions | |
void | NEDError (NEDElement *context, const char *message,...) |
bool | errorsOccurred () |
void | clearErrors () |
void | NEDInternalError (const char *file, int line, NEDElement *context, const char *message,...) |
|
|
|
|
|
|
|
|
|
Resets the flag used by errorsOccurred().
|
|
Returns true if NEDError() has been called since the last clearErrors().
|
|
Adds a compiler error message. Currently the message is printed to the standard error; this is going to be refined. |
|
Called when an internal error occurs. It prints an appropriate message, then calls abort(). This method is typically used via the INTERNAL_ERROR0()...INTERNAL_ERROR4() macros that add the __FILE__, __LINE__ args implicitly. |