- Timestamp:
- Mar 6, 2009, 10:26:32 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/eam_branch_20090303/psphot/src/psphotVersion.c
r23156 r23202 5 5 #endif 6 6 7 psString psphotVersion(void)8 {9 7 #ifndef PSPHOT_VERSION 10 8 #error "PSPHOT_VERSION is not set" … … 13 11 #error "PSPHOT_BRANCH is not set" 14 12 #endif 15 return psStringCopy(PSPHOT_BRANCH "@" PSPHOT_VERSION); 13 #ifndef PSPHOT_SOURCE 14 #error "PSPHOT_SOURCE is not set" 15 #endif 16 17 #define xstr(s) str(s) 18 #define str(s) #s 19 20 psString psphotVersion(void) 21 { 22 char *value = NULL; 23 psStringAppend(&value, "%s@%s", xstr(PSPHOT_BRANCH), xstr(PSPHOT_VERSION)); 24 return value; 16 25 } 17 26 18 27 psString psphotSource(void) 19 28 { 20 #ifndef PSPHOT_SOURCE 21 #error "PSPHOT_SOURCE is not set" 22 #endif 23 return psStringCopy(PSPHOT_SOURCE); 29 return psStringCopy(xstr(PSPHOT_SOURCE)); 24 30 } 25 31
Note:
See TracChangeset
for help on using the changeset viewer.
