- Timestamp:
- Mar 6, 2009, 10:26:32 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/eam_branch_20090303/ppSub/src/ppSubVersion.c
r23144 r23202 22 22 #include "ppSub.h" 23 23 24 psString ppSubVersion(void)25 {26 24 #ifndef PPSUB_VERSION 27 25 #error "PPSUB_VERSION is not set" … … 30 28 #error "PPSUB_BRANCH is not set" 31 29 #endif 32 return psStringCopy(PPSUB_BRANCH "@" PPSUB_VERSION); 30 #ifndef PPSUB_SOURCE 31 #error "PPSUB_SOURCE is not set" 32 #endif 33 34 #define xstr(s) str(s) 35 #define str(s) #s 36 37 psString ppSubVersion(void) 38 { 39 char *value = NULL; 40 psStringAppend(&value, "%s@%s", xstr(PPSUB_BRANCH), xstr(PPSUB_VERSION)); 41 return value; 33 42 } 34 43 35 44 psString ppSubSource(void) 36 45 { 37 #ifndef PPSUB_SOURCE 38 #error "PPSUB_SOURCE is not set" 39 #endif 40 return psStringCopy(PPSUB_SOURCE); 46 return psStringCopy(xstr(PPSUB_SOURCE)); 41 47 } 42 48
Note:
See TracChangeset
for help on using the changeset viewer.
