11 #ifndef __EX_ERROR_H__
12 #define __EX_ERROR_H__
19 #define EV_ERRSYNTAX 1
20 #define EV_ERRBRACING 2
21 #define EV_ERRNOFUNC 3
23 #define EV_ERRBADTYPE 5
24 #define EV_ERRBADARGS 6
25 #define EV_ERRUNKNOWN 7
26 #define EV_ERRRECURSION 8
28 #define EV_ERRBADVAR 10
29 #define EV_NAN 11 // Divide by zero or something like that
30 #define EV_ERREXTRAJUNK 12 // Extra junk at end of expression
31 #define EV_ERRUNSAFEFUNC 13 // Unsafe function
32 #define EV_ERRINLINEFUNC 14 // Error in inline function
33 #define EV_ERRDEADLOCK 15 // Deadlock
34 #define EV_ERRCUSTOM 16 // Custom error text
46 ev_SetErrNo(
int err,
int thread)
53 ev_GetErrNo(
int thread)
68 #endif // __EX_ERROR_H__
GLuint GLsizei const GLchar * message
EXPR_API const char * ev_GetErrorText(int error_number)
Retrieve a string representing the error.
EXPR_API void ev_SetCustomErrorMessage(const char *message, int thread)
Sets an error, EV_ERRCUSTOM, using the given custom message as the text.
EXPR_API UT_ThreadSpecificValue< int > theErrNo
**Note that the tasks the is the thread number *for the or if it s being executed by a non pool thread(this *can happen in cases where the whole pool is occupied and the calling *thread contributes to running the work load).**Thread pool.Have fun
T & getValueForThread(int thread_index)
EXPR_API void ev_ClearCycles(int thread)