Changeset 23229 for trunk/ppSub/src/ppSubVersion.c
- Timestamp:
- Mar 8, 2009, 4:50:46 PM (17 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
ppSub/src/ppSubVersion.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk
-
Property svn:mergeinfo
set to
/branches/eam_branches/eam_branch_20090303 merged eligible
-
Property svn:mergeinfo
set to
-
trunk/ppSub/src/ppSubVersion.c
r23195 r23229 23 23 #include "ppSub.h" 24 24 25 psString ppSubVersion(void)26 {27 25 #ifndef PPSUB_VERSION 28 26 #error "PPSUB_VERSION is not set" … … 31 29 #error "PPSUB_BRANCH is not set" 32 30 #endif 33 return psStringCopy(PPSUB_BRANCH "@" PPSUB_VERSION); 31 #ifndef PPSUB_SOURCE 32 #error "PPSUB_SOURCE is not set" 33 #endif 34 35 #define xstr(s) str(s) 36 #define str(s) #s 37 38 psString ppSubVersion(void) 39 { 40 char *value = NULL; 41 psStringAppend(&value, "%s@%s", xstr(PPSUB_BRANCH), xstr(PPSUB_VERSION)); 42 return value; 34 43 } 35 44 36 45 psString ppSubSource(void) 37 46 { 38 #ifndef PPSUB_SOURCE 39 #error "PPSUB_SOURCE is not set" 40 #endif 41 return psStringCopy(PPSUB_SOURCE); 47 return psStringCopy(xstr(PPSUB_SOURCE)); 42 48 } 43 49
Note:
See TracChangeset
for help on using the changeset viewer.
