- Timestamp:
- Mar 6, 2009, 10:26:32 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/eam_branch_20090303/ppStack/src/ppStackVersion.c
r23143 r23202 10 10 #include "ppStack.h" 11 11 12 psString ppStackVersion(void)13 {14 12 #ifndef PPSTACK_VERSION 15 13 #error "PPSTACK_VERSION is not set" … … 18 16 #error "PPSTACK_BRANCH is not set" 19 17 #endif 20 return psStringCopy(PPSTACK_BRANCH "@" PPSTACK_VERSION); 18 #ifndef PPSTACK_SOURCE 19 #error "PPSTACK_SOURCE is not set" 20 #endif 21 22 #define xstr(s) str(s) 23 #define str(s) #s 24 25 psString ppStackVersion(void) 26 { 27 char *value = NULL; 28 psStringAppend(&value, "%s@%s", xstr(PPSTACK_BRANCH), xstr(PPSTACK_VERSION)); 29 return value; 21 30 } 22 31 23 32 psString ppStackSource(void) 24 33 { 25 #ifndef PPSTACK_SOURCE 26 #error "PPSTACK_SOURCE is not set" 27 #endif 28 return psStringCopy(PPSTACK_SOURCE); 34 return psStringCopy(xstr(PPSTACK_SOURCE)); 29 35 } 30 36
Note:
See TracChangeset
for help on using the changeset viewer.
