9 * ShowMacAssertDialog is used by assert |
9 * ShowMacAssertDialog is used by assert |
10 * ShowMacErrorDialog should be used when an unrecoverable error shows up. It only contains the title, which will should tell what went wrong |
10 * ShowMacErrorDialog should be used when an unrecoverable error shows up. It only contains the title, which will should tell what went wrong |
11 * the function then adds text that tells the user to update and then report the bug if it's present in the newest version |
11 * the function then adds text that tells the user to update and then report the bug if it's present in the newest version |
12 * It also quits in a nice way since we call it when we know something happened that will crash OpenTTD (like a needed pointer turns out to be NULL or similar) |
12 * It also quits in a nice way since we call it when we know something happened that will crash OpenTTD (like a needed pointer turns out to be NULL or similar) |
13 */ |
13 */ |
14 #ifdef __cplusplus |
14 void ShowMacDialog ( const char *title, const char *message, const char *buttonLabel ); |
15 extern "C" { |
15 void ShowMacAssertDialog ( const char *function, const char *file, const int line, const char *expression ); |
16 #endif //__cplusplus |
16 void ShowMacErrorDialog(const char *error); |
17 void ShowMacDialog ( const char *title, const char *message, const char *buttonLabel ); |
|
18 void ShowMacAssertDialog ( const char *function, const char *file, const int line, const char *expression ); |
|
19 void ShowMacErrorDialog(const char *error); |
|
20 #ifdef __cplusplus |
|
21 } |
|
22 #endif //__cplusplus |
|
23 |
17 |
24 // Since MacOS X users will never see an assert unless they started the game from a terminal |
18 // Since MacOS X users will never see an assert unless they started the game from a terminal |
25 // we're using a custom assert(e) macro. |
19 // we're using a custom assert(e) macro. |
26 #undef assert |
20 #undef assert |
27 |
21 |