ROVLib2
RISCOSC++applicationdevelopmentlibrary
wimp_error.h
1 #pragma once
2 
3 #include "wimp_basics.h"
4 
5 #ifdef __cplusplus
6 extern "C"
7 {
8 #endif
9 
10  typedef struct
11  {
12  unsigned int uiErrorCode;
13  char caErrorMessage[252];
14  } tErrorBlock; // eb
15 
16  int wimp_error(const char* error_string, unsigned int flags);
17  void swerr(const char* error_string, ...);
18 
19  extern tErrorBlock* pebLastError;
20 
21 #define WIMPERROR_OKBOX (1 << 0)
22 #define WIMPERROR_CANCELBOX (1 << 1)
23 #define WIMPERROR_HIGHLIGHTCANCEL (1 << 2)
24 #define WIMPERROR_NOAPPLICATIONPREFIX (1 << 4)
25 
26 #ifdef __cplusplus
27 }
28 #endif