| 4e257de2 |
sago007 |
2016-01-22 17:43 |
1 |
/* |
| 47fef8e8 |
sago007 |
2016-11-24 21:37 |
2 |
Copyright (c) 2016 Poul Sander |
| 4e257de2 |
sago007 |
2016-01-22 17:43 |
3 |
|
| 47fef8e8 |
sago007 |
2016-11-24 21:37 |
4 |
Permission is hereby granted, free of charge, to any person |
| 47fef8e8 |
sago007 |
2016-11-24 21:37 |
5 |
obtaining a copy of this software and associated documentation files |
| 47fef8e8 |
sago007 |
2016-11-24 21:37 |
6 |
(the "Software"), to deal in the Software without restriction, |
| 47fef8e8 |
sago007 |
2016-11-24 21:37 |
7 |
including without limitation the rights to use, copy, modify, merge, |
| 47fef8e8 |
sago007 |
2016-11-24 21:37 |
8 |
publish, distribute, sublicense, and/or sell copies of the Software, |
| 47fef8e8 |
sago007 |
2016-11-24 21:37 |
9 |
and to permit persons to whom the Software is furnished to do so, |
| 47fef8e8 |
sago007 |
2016-11-24 21:37 |
10 |
subject to the following conditions: |
| 4e257de2 |
sago007 |
2016-01-22 17:43 |
11 |
|
| 47fef8e8 |
sago007 |
2016-11-24 21:37 |
12 |
The above copyright notice and this permission notice shall be |
| 47fef8e8 |
sago007 |
2016-11-24 21:37 |
13 |
included in all copies or substantial portions of the Software. |
| 4e257de2 |
sago007 |
2016-01-22 17:43 |
14 |
|
| 47fef8e8 |
sago007 |
2016-11-24 21:37 |
15 |
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, |
| 47fef8e8 |
sago007 |
2016-11-24 21:37 |
16 |
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF |
| 47fef8e8 |
sago007 |
2016-11-24 21:37 |
17 |
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND |
| 47fef8e8 |
sago007 |
2016-11-24 21:37 |
18 |
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS |
| 47fef8e8 |
sago007 |
2016-11-24 21:37 |
19 |
BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN |
| 47fef8e8 |
sago007 |
2016-11-24 21:37 |
20 |
ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN |
| 47fef8e8 |
sago007 |
2016-11-24 21:37 |
21 |
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE |
| 47fef8e8 |
sago007 |
2016-11-24 21:37 |
22 |
SOFTWARE. |
| 4e257de2 |
sago007 |
2016-01-22 17:43 |
23 |
*/ |
| 4e257de2 |
sago007 |
2016-01-22 17:43 |
24 |
|
| 4e257de2 |
sago007 |
2016-01-22 17:43 |
25 |
#ifndef SAGOMISCSDL2_HPP |
| 4e257de2 |
sago007 |
2016-01-22 17:43 |
26 |
#define SAGOMISCSDL2_HPP |
| 4e257de2 |
sago007 |
2016-01-22 17:43 |
27 |
|
| 4e257de2 |
sago007 |
2016-01-22 17:43 |
28 |
namespace sago { |
| 4e257de2 |
sago007 |
2016-01-22 17:43 |
29 |
|
| 6c28b502 |
sago007 |
2016-02-13 11:38 |
30 |
/** |
| 6c28b502 |
sago007 |
2016-02-13 11:38 |
31 |
* Writes an error message to the screen and aborts the program |
| 6c28b502 |
sago007 |
2016-02-13 11:38 |
32 |
* @param errorMsg The message displayed in a pop-up box to the user. |
| 6c28b502 |
sago007 |
2016-02-13 11:38 |
33 |
*/ |
| 4e257de2 |
sago007 |
2016-01-22 17:43 |
34 |
void SagoFatalError(const char* errorMsg); |
| 6c28b502 |
sago007 |
2016-02-13 11:38 |
35 |
|
| 6c28b502 |
sago007 |
2016-02-13 11:38 |
36 |
/** |
| 6c28b502 |
sago007 |
2016-02-13 11:38 |
37 |
* Writes an error message to the screen and aborts the program |
| 6c28b502 |
sago007 |
2016-02-13 11:38 |
38 |
* @param fmt A printf-style format string |
| 6c28b502 |
sago007 |
2016-02-13 11:38 |
39 |
* @param ... Parameters to the format string |
| 6c28b502 |
sago007 |
2016-02-13 11:38 |
40 |
*/ |
| c3fc09e9 |
sago007 |
2016-01-22 18:31 |
41 |
void SagoFatalErrorF(const char* fmt, ...) __attribute__ ((format (printf, 1, 2))); |
| 4e257de2 |
sago007 |
2016-01-22 17:43 |
42 |
|
| 4e257de2 |
sago007 |
2016-01-22 17:43 |
43 |
} |
| 4e257de2 |
sago007 |
2016-01-22 17:43 |
44 |
|
| 4e257de2 |
sago007 |
2016-01-22 17:43 |
45 |
#endif /* SAGOMISCSDL2_HPP */ |
| 4e257de2 |
sago007 |
2016-01-22 17:43 |
46 |
|
|
|
1970-01-01 00:00 |
47 |
|