Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Martin wrote :
authoralegrand <alegrand@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Tue, 7 Dec 2004 20:03:31 +0000 (20:03 +0000)
committeralegrand <alegrand@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Tue, 7 Dec 2004 20:03:31 +0000 (20:03 +0000)
commitc45dbb9b597755fafbf53aef93a752c57afc7028
treedab00375455ff39082f8dedb1d90b76b78fc3d92
parent652a551093d0eaf9b82bce16d654f680c82e71ab
Martin wrote :

> Then, you could rewrite this to:
>
> gras_assert1((f = fopen(filename, "r")),
>             "Cannot open file '%s'\n", filename);
>
> Since you have some core in the condition, you may want to leave the if, and
> put a gras_assert2(0,"bla",bli) in it.

Yes. I was not using assert because of the core in the condition. I hadn't
thought to gras_assert2(0,

Now that should be better.

git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@558 48e7efb5-ca39-0410-a469-dd3cf9ba447f
src/surf/trace_mgr.c