xref: /haiku/src/tests/kits/interface/menu/menuworld/stddlg.cpp (revision 7495b57bcc156cb4d545af9ca888ad519e7fef70)
1 //--------------------------------------------------------------------
2 //
3 //	stddlg.cpp
4 //
5 //	Written by: Owen Smith
6 //
7 //--------------------------------------------------------------------
8 
9 /*
10 	Copyright 1999, Be Incorporated.   All Rights Reserved.
11 	This file may be used under the terms of the Be Sample Code License.
12 */
13 
14 #include <Alert.h>
15 #include <String.h>
16 
17 #include "constants.h"
18 #include "stddlg.h"
19 
20 
ierror(const char * msg)21 void ierror(const char* msg)
22 {
23 	BString fullMsg(STR_IERROR);
24 	fullMsg << msg;
25 	BAlert alert("Internal Error", fullMsg, "OK", NULL, NULL,
26 		B_WIDTH_AS_USUAL, B_STOP_ALERT);
27 	alert.Go();
28 }
29