Changeset 15 for trunk/IPs/systemC/processor/Morpheo/Behavioural/New_Component/SelfTest/src/main.cpp
- Timestamp:
- Apr 5, 2007, 4:17:30 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/IPs/systemC/processor/Morpheo/Behavioural/New_Component/SelfTest/src/main.cpp
r2 r15 10 10 #define NB_PARAMS 0 11 11 12 void usage ( string exec)12 void usage (int argc, char * argv[]) 13 13 { 14 cerr << "<Usage> " << exec<< " name_instance list_params" << endl15 << "list_params is :" << endl ;14 cerr << "<Usage> " << argv[0] << " name_instance list_params" << endl 15 << "list_params is :" << endl 16 16 // << " - size_data (unsigned int)" << endl 17 17 // << " - nb_port (unsigned int)" << endl; 18 << "" << endl; 19 20 for (int i=0; i<argc; i++) 21 cerr << argv[i] << " "; 22 cerr << endl; 18 23 19 24 exit (1); … … 26 31 #endif 27 32 { 28 if (argc !=2+NB_PARAMS)29 usage (arg v[0]);33 if (argc < 2+NB_PARAMS) 34 usage (argc, argv); 30 35 31 36 const string name = argv[1]; … … 46 51 { 47 52 cout << "<" << name << "> : " << error.what (); 48 return;53 exit (EXIT_FAILURE); 49 54 } 50 55 catch (...)
Note: See TracChangeset
for help on using the changeset viewer.