- Timestamp:
- Mar 6, 2009, 10:26:32 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/eam_branch_20090303/psLib/src/sys/psConfigure.c
r23116 r23202 47 47 static FILE *memCheckFile = NULL; // File to which to write results of mem check 48 48 49 50 psString psLibVersion(void)51 {52 49 #ifndef PSLIB_VERSION 53 50 #error "PSLIB_VERSION is not set" … … 56 53 #error "PSLIB_BRANCH is not set" 57 54 #endif 58 return psStringCopy(PSLIB_BRANCH "@" PSLIB_VERSION); 55 #ifndef PSLIB_SOURCE 56 #error "PSLIB_SOURCE is not set" 57 #endif 58 59 #define xstr(s) str(s) 60 #define str(s) #s 61 62 psString psLibVersion(void) 63 { 64 char *value = NULL; 65 psStringAppend(&value, "%s@%s", xstr(PSLIB_BRANCH), xstr(PSLIB_VERSION)); 66 return value; 59 67 } 60 68 61 69 psString psLibSource(void) 62 70 { 63 #ifndef PSLIB_SOURCE 64 #error "PSLIB_SOURCE is not set" 65 #endif 66 return psStringCopy(PSLIB_SOURCE); 71 return psStringCopy(xstr(PSLIB_SOURCE)); 67 72 } 68 73
Note:
See TracChangeset
for help on using the changeset viewer.
