/[dtapublic]/projs/trunk/shared_source/c_cmode/ccmfatal.c
ViewVC logotype

Contents of /projs/trunk/shared_source/c_cmode/ccmfatal.c

Parent Directory Parent Directory | Revision Log Revision Log


Revision 55 - (show annotations) (download)
Sat Oct 29 01:52:13 2016 UTC (7 years, 5 months ago) by dashley
File MIME type: text/plain
File size: 2371 byte(s)
Header whitespace adjustment.
1 //$Header$
2 //-------------------------------------------------------------------------------------------------
3 //This file is part of "David T. Ashley's Shared Source Code", a set of shared components
4 //integrated into many of David T. Ashley's projects.
5 //-------------------------------------------------------------------------------------------------
6 //This source code and any program in which it is compiled/used is provided under the MIT License,
7 //reproduced below.
8 //-------------------------------------------------------------------------------------------------
9 //Permission is hereby granted, free of charge, to any person obtaining a copy of
10 //this software and associated documentation files(the "Software"), to deal in the
11 //Software without restriction, including without limitation the rights to use,
12 //copy, modify, merge, publish, distribute, sublicense, and / or sell copies of the
13 //Software, and to permit persons to whom the Software is furnished to do so,
14 //subject to the following conditions :
15 //
16 //The above copyright notice and this permission notice shall be included in all
17 //copies or substantial portions of the Software.
18 //
19 //THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
20 //IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
21 //FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE
22 //AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
23 //LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
24 //OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
25 //SOFTWARE.
26 //-------------------------------------------------------------------------------------------------
27 #define MODULE_CCMFATAL
28
29 #include <process.h>
30 #include <stdio.h>
31
32 #include "ccmfatal.h"
33
34
35 void CCMFATAL_fatal(const char *desc,
36 const char *file,
37 int line)
38 {
39 printf("Fatal error. Must terminate execution.\n");
40 printf("File: %s, Line: %d.\n", file, line);
41 printf("Error description: %s\n", desc);
42 exit(4); //Error code 4 for error termination.
43 }
44
45
46 const char *CCMFATAL_cvcinfo(void)
47 {
48 return("$Header$");
49 }
50
51
52 const char *CCMFATAL_hvcinfo(void)
53 {
54 return(CCMFATAL_H_VERSION);
55 }
56
57 //End of ccmfatal.c.

Properties

Name Value
svn:keywords Header

dashley@gmail.com
ViewVC Help
Powered by ViewVC 1.1.25