Subversion Repositories Games.Descent

Rev

Blame | Last modification | View Log | Download | RSS feed

  1. /*
  2.  * This file is part of the DXX-Rebirth project <https://www.dxx-rebirth.com/>.
  3.  * It is copyright by its individual contributors, as recorded in the
  4.  * project's Git history.  See COPYING.txt at the top level for license
  5.  * terms and a link to the Git history.
  6.  */
  7. /*
  8.  *  messagebox.h
  9.  *  d1x-rebirth
  10.  *
  11.  *  Display an error or warning messagebox using the OS's window server.
  12.  *
  13.  */
  14.  
  15. #pragma once
  16.  
  17. namespace dcx {
  18.  
  19. #if defined(WIN32) || defined(__APPLE__) || defined(__MACH__)
  20. // Display a warning in a messagebox
  21. extern void msgbox_warning(const char *message);
  22.  
  23. // Display an error in a messagebox
  24. extern void msgbox_error(const char *message);
  25. #else
  26. #define msgbox_error(M) (static_cast<void>(M))
  27. #endif
  28.  
  29. }
  30.