Ignore:
Timestamp:
Apr 5, 2007, 4:17:30 PM (17 years ago)
Author:
rosiere
Message:

Interface normalisé
Début du banc de registres multi niveaux

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/New_Component/SelfTest/src/main.cpp

    r2 r15  
    1010#define NB_PARAMS 0
    1111
    12 void usage (string exec)
     12void usage (int argc, char * argv[])
    1313{
    14   cerr << "<Usage> " << exec << " name_instance list_params" << endl
    15        << "list_params is :" << endl;
     14  cerr << "<Usage> " << argv[0] << " name_instance list_params" << endl
     15       << "list_params is :" << endl
    1616//     << " - size_data     (unsigned int)" << endl
    1717//     << " - nb_port       (unsigned int)" << endl;
     18       << "" << endl;
     19
     20  for (int i=0; i<argc; i++)
     21    cerr << argv[i] << " ";
     22  cerr << endl;
    1823
    1924  exit (1);
     
    2631#endif
    2732{
    28   if (argc != 2+NB_PARAMS)
    29     usage (argv[0]);
     33  if (argc < 2+NB_PARAMS)
     34    usage (argc, argv);
    3035
    3136  const string   name      = argv[1];
     
    4651    {
    4752      cout << "<" << name << "> : " <<  error.what ();
    48       return;
     53      exit (EXIT_FAILURE);
    4954    }
    5055  catch (...)
Note: See TracChangeset for help on using the changeset viewer.