xref: /haiku/src/tests/kits/interface/menu/menuworld/stddlg.cpp (revision cbe0a0c436162d78cc3f92a305b64918c839d079)
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 
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