ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/cvsroot/deliantra/dclient/include/ncurses/assert.hh
Revision: 1.2
Committed: Mon Oct 18 14:11:44 2010 UTC (16 years ago) by sf-pippijn
Branch: MAIN
Changes since 1.1: +0 -14 lines
Log Message:
check and log but do not die when ncurses stuff fails

File Contents

# User Rev Content
1 sf-pippijn 1.1 /* assert.hh
2     * This file is part of ncursesxx library
3     * Copyright (c) 2003,2004 by Stanislav Ievlev
4     *
5     * This file is covered by the GNU Library General Public License,
6     * which should be included with libncursesxx as the file COPYING.
7     */
8     #ifndef NCURSESXX_ASSERT_HH__
9     #define NCURSESXX_ASSERT_HH__
10    
11     #include <stdexcept>
12    
13     namespace ncurses
14     {
15     /**
16     * library runtime exception
17     */
18     struct runtime_error
19     : std::runtime_error
20     {
21     explicit runtime_error (const std::string &descr)
22     : std::runtime_error (descr)
23     {
24     }
25     };
26     }
27    
28     #endif