os/macosx/macos.h
changeset 3127 c734d50ad134
parent 2847 5c667829bc67
child 4434 4175805666a5
equal deleted inserted replaced
3126:b609a98e32a5 3127:c734d50ad134
     1 /* $Id$ */
     1 /* $Id$ */
     2 
     2 
     3 #ifndef MACOS_H
     3 #ifndef MACOS_H
     4 #define MACOS_H
     4 #define MACOS_H
     5 
     5 
       
     6 /*
       
     7  * Functions to show the popup window
       
     8  * use ShowMacDialog when you want to control title, message and text on the button
       
     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
       
    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)
       
    13  */
     6 void ShowMacDialog ( const char *title, const char *message, const char *buttonLabel );
    14 void ShowMacDialog ( const char *title, const char *message, const char *buttonLabel );
     7 void ShowMacAssertDialog ( const char *function, const char *file, const int line, const char *expression );
    15 void ShowMacAssertDialog ( const char *function, const char *file, const int line, const char *expression );
       
    16 void ShowMacErrorDialog(const char *error);
     8 
    17 
     9 // 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
    10 // we're using a custom assert(e) macro.
    19 // we're using a custom assert(e) macro.
    11 #undef assert
    20 #undef assert
    12 
    21