#include <j2k/Fred/Error/ErrorCode.hpp>
Go to the source code of this file.
Functions | |
ErrorCode | doSomeJob (int i) |
ErrorCode | myFunc (void) |
int | main (void) |
|
Definition at line 5 of file ErrorTest.cpp. Referenced by myFunc().
|
|
Definition at line 63 of file ErrorTest.cpp. |
|
Definition at line 33 of file ErrorTest.cpp. Referenced by main().
00035 { 00036 00037 doSomeJob(0); // <-- return value not used 00038 00039 00040 00041 ErrorCode err = doSomeJob(5); 00042 00043 err = doSomeJob(15); // <-- previous value of err not tested 00044 00045 if (err != Success) // <-- return value is tested 00046 00047 return err; 00048 00049 00050 00051 ... // some code 00052 00053 00054 00055 return Success; 00056 00057 } |