OpenCBM
statedebug.c
Go to the documentation of this file.
1 /*
2  * This program is free software; you can redistribute it and/or
3  * modify it under the terms of the GNU General Public License
4  * as published by the Free Software Foundation; either version
5  * 2 of the License, or (at your option) any later version.
6  *
7  * Copyright 2011 Spiro Trikaliotis
8  *
9  */
10 
19 #include "statedebug.h"
20 #include "version.h"
21 
22 #include <stdio.h>
23 
24 volatile signed int DebugLineNumber=-1, DebugBlockCount=-1,
25  DebugByteCount=-1, DebugBitCount=-1;
26 volatile char * DebugFileName = "";
27 
28 void DebugPrintDebugCounters(void)
29 {
30  fprintf(stderr, "file: %s"
31  "\n\tversion: " OPENCBM_VERSION_STRING ", built: " __DATE__ " " __TIME__
32  "\n\tline=%d, blocks=%d, bytes=%d, bits=%d\n",
33  DebugFileName, DebugLineNumber,
34  DebugBlockCount, DebugByteCount,
35  DebugBitCount);
36 }
Defining OpenCBM version.