tmplpro_version.c

filter: Statementstmt 100% 2 / 2 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub n/a Podpod n/a totaltotal 100% 2 / 2 SCAR 0
CC
0
Cov
0%
CRAP 0
« loopvar.inc ↑ Summary
1 /* -*- c -*-
2 * File: tmplpro_version.c
3 * Author: Igor Vlasenko <vlasenko@imath.kiev.ua>
4 * Created: Mon Jul 13 21:24:55 2009
5 */
6  
7 #ifdef HAVE_CONFIG_H
8 #include "config.h"
9 #endif
10  
11 #ifndef PACKAGE_VERSION
12 #ifdef VERSION
13 #define PACKAGE_VERSION VERSION
14 #else
15 #define PACKAGE_VERSION "0.0(not defined)"
16 #endif
17 #endif
18  
19 /*************************************************
20 * Return version string *
21 *************************************************/
22  
23 /* These macros are the standard way of turning unquoted text into C strings.
24 They allow macros like PCRE_MAJOR to be defined without quotes, which is
25 convenient for user programs that want to test its value. */
26  
27 #define STRING(a) # a
28 #define XSTRING(s) STRING(s)
29  
30 1 const char* tmplpro_version(void) {
31 //return "" XSTRING(PACKAGE_VERSION) ;
32 1 return "" PACKAGE_VERSION ;
33 }
34  
35 /*
36 * Local Variables:
37 * mode: c
38 * End:
39 */
« loopvar.inc ↑ Summary