- Timestamp:
- Mar 9, 2009, 3:41:26 PM (17 years ago)
- Location:
- branches/cnb_branches/cnb_branch_20090215
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
ppSim/src/ppSimVersion.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/cnb_branches/cnb_branch_20090215
- Property svn:mergeinfo changed
/branches/eam_branches/eam_branch_20090303 (added) merged: 23158,23175-23181,23202-23210,23220-23225 /trunk merged: 23211-23219,23226-23238
- Property svn:mergeinfo changed
-
branches/cnb_branches/cnb_branch_20090215/ppSim/src/ppSimVersion.c
r23199 r23239 1 1 #include "ppSim.h" 2 2 3 4 psString ppSimVersion(void)5 {6 3 #ifndef PPSIM_VERSION 7 4 #error "PPSIM_VERSION is not set" … … 10 7 #error "PPSIM_BRANCH is not set" 11 8 #endif 12 return psStringCopy(PPSIM_BRANCH "@" PPSIM_VERSION); 9 #ifndef PPSIM_SOURCE 10 #error "PPSIM_SOURCE is not set" 11 #endif 12 13 #define xstr(s) str(s) 14 #define str(s) #s 15 16 psString ppSimVersion(void) 17 { 18 char *value = NULL; 19 psStringAppend(&value, "%s@%s", xstr(PPSIM_BRANCH), xstr(PPSIM_VERSION)); 20 return value; 13 21 } 14 22 15 23 psString ppSimSource(void) 16 24 { 17 #ifndef PPSIM_SOURCE 18 #error "PPSIM_SOURCE is not set" 19 #endif 20 return psStringCopy(PPSIM_SOURCE); 25 return psStringCopy(xstr(PPSIM_SOURCE)); 21 26 } 22 27
Note:
See TracChangeset
for help on using the changeset viewer.
