Changeset 707 for trunk/archive/pslib/src/Utils/tst_error.c
- Timestamp:
- May 17, 2004, 7:53:16 AM (22 years ago)
- File:
-
- 1 edited
-
trunk/archive/pslib/src/Utils/tst_error.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/archive/pslib/src/Utils/tst_error.c
r332 r707 30 30 int main(void) 31 31 { 32 ps SetTraceLevel("", 10); // turn on all tracing33 ps SetLogDestination(PS_LOG_NONE); // turn off error logging32 psTraceSetLevel("", 10); // turn on all tracing 33 psLogSetDestination(PS_LOG_NONE); // turn off error logging 34 34 35 35 if (toplevel() != 0) { 36 36 psErrorStackPrint(stdout, "Traceback:\n"); 37 37 38 if (ps LastError()->code == PS_ERR_UNKNOWN) {38 if (psErrorLast()->code == PS_ERR_UNKNOWN) { 39 39 fprintf(stderr, "Last error is of unknown type\n"); 40 40 } 41 if (ps GetError(2)->code == PS_ERR_IO) {41 if (psErrorGet(2)->code == PS_ERR_IO) { 42 42 fprintf(stderr, "Third oldest error is of type IO\n"); 43 43 } … … 47 47 psErrorStackPrint(stdout, "Traceback:\n"); 48 48 49 if (ps LastError()->code == PS_ERR_NONE) {49 if (psErrorLast()->code == PS_ERR_NONE) { 50 50 fprintf(stderr, "No errors. Hurrah\n"); 51 51 }
Note:
See TracChangeset
for help on using the changeset viewer.
