aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pmpd2d_interactor.c4
-rw-r--r--pmpd2d_test.c6
-rw-r--r--pmpd3d_interactor.c6
-rw-r--r--pmpd3d_test.c6
-rw-r--r--pmpd_test.c6
5 files changed, 14 insertions, 14 deletions
diff --git a/pmpd2d_interactor.c b/pmpd2d_interactor.c
index 75b263e..b1e4639 100644
--- a/pmpd2d_interactor.c
+++ b/pmpd2d_interactor.c
@@ -55,7 +55,7 @@ void pmpd2d_iCircle(t_pmpd2d *x, t_symbol *s, int argc, t_atom *argv)
if (!((argc>=5) && (argv[1].a_type == A_FLOAT)&& (argv[2].a_type == A_FLOAT)&& (argv[3].a_type == A_FLOAT) ))
{
- post("bad argument for iCircle");
+ pd_error(x,"bad argument for iCircle");
return;
}
@@ -133,7 +133,7 @@ void pmpd2d_iLine(t_pmpd2d *x, t_symbol *s, int argc, t_atom *argv)
if (!((argc>=6) && (argv[1].a_type == A_FLOAT) && (argv[2].a_type == A_FLOAT) && (argv[3].a_type == A_FLOAT) && (argv[4].a_type == A_FLOAT) && (argv[5].a_type == A_FLOAT) ))
{
- post("bad argument for iLine");
+ pd_error(x,"bad argument for iLine");
return;
}
diff --git a/pmpd2d_test.c b/pmpd2d_test.c
index 84490fc..a73d43e 100644
--- a/pmpd2d_test.c
+++ b/pmpd2d_test.c
@@ -121,7 +121,7 @@ int test_2d_mass(int i, t_pmpd2d *x, int argc, t_atom *argv)
}
else
{
- post("Option \"%s\" not reconized, stoping test",atom_getsymbolarg(j,argc,argv)->s_name);
+ pd_error(x, "Option \"%s\" not reconized, stoping test",atom_getsymbolarg(j,argc,argv)->s_name);
return(-1);
}
}
@@ -232,13 +232,13 @@ int test_2d_link(int i, t_pmpd2d *x, int argc, t_atom *argv)
}
else
{
- post("bad argument for connectedTo");
+ pd_error(x,"bad argument for connectedTo");
j+=1;
}
}
else
{
- post("Option \"%s\" not reconized, stoping test",atom_getsymbolarg(j,argc,argv)->s_name);
+ pd_error(x,"Option \"%s\" not reconized, stoping test",atom_getsymbolarg(j,argc,argv)->s_name);
return(-1);
}
}
diff --git a/pmpd3d_interactor.c b/pmpd3d_interactor.c
index 70a9a12..e7ed6f8 100644
--- a/pmpd3d_interactor.c
+++ b/pmpd3d_interactor.c
@@ -62,7 +62,7 @@ void pmpd3d_iCylinder(t_pmpd3d *x, t_symbol *s, int argc, t_atom *argv)
if (!((argc>=9) && (argv[1].a_type == A_FLOAT)&& (argv[2].a_type == A_FLOAT)&& (argv[3].a_type == A_FLOAT)&& (argv[4].a_type == A_FLOAT)&& (argv[5].a_type == A_FLOAT)&& (argv[6].a_type == A_FLOAT)&& (argv[7].a_type == A_FLOAT)&& (argv[8].a_type == A_FLOAT)))
{
- post("bad argument for iCylinder");
+ pd_error(x,"bad argument for iCylinder");
return;
}
t_float xc, yc, zc, a, b, c, d, r, K, Kt, power, powert, tmp, Rmin, Rmax;
@@ -165,7 +165,7 @@ void pmpd3d_iPlane(t_pmpd3d *x, t_symbol *s, int argc, t_atom *argv)
if (!((argc>=8) && (argv[1].a_type == A_FLOAT)&& (argv[2].a_type == A_FLOAT)&& (argv[3].a_type == A_FLOAT)&& (argv[4].a_type == A_FLOAT)&& (argv[5].a_type == A_FLOAT)&& (argv[6].a_type == A_FLOAT)&& (argv[7].a_type == A_FLOAT)))
{
- post("bad argument for iPlane");
+ pd_error(x,"bad argument for iPlane");
return;
}
@@ -275,7 +275,7 @@ void pmpd3d_iSphere(t_pmpd3d *x, t_symbol *s, int argc, t_atom *argv)
if (!((argc>=6) && (argv[1].a_type == A_FLOAT)&& (argv[2].a_type == A_FLOAT)&& (argv[3].a_type == A_FLOAT)&& (argv[4].a_type == A_FLOAT)))
{
- post("bad argument for iSphere");
+ pd_error(x,"bad argument for iSphere");
return;
}
diff --git a/pmpd3d_test.c b/pmpd3d_test.c
index f6f01a6..728afbf 100644
--- a/pmpd3d_test.c
+++ b/pmpd3d_test.c
@@ -151,7 +151,7 @@ int test_3d_mass(int i, t_pmpd3d *x, int argc, t_atom *argv)
}
else
{
- post("Option \"%s\" not reconized, stoping test",atom_getsymbolarg(j,argc,argv)->s_name);
+ pd_error(x,"Option \"%s\" not reconized, stoping test",atom_getsymbolarg(j,argc,argv)->s_name);
return(-1);
}
}
@@ -284,13 +284,13 @@ int test_3d_link(int i, t_pmpd3d *x, int argc, t_atom *argv)
}
else
{
- post("bad argument for connectedTo");
+ pd_error(x,"bad argument for connectedTo");
j+=1;
}
}
else
{
- post("Option \"%s\" not reconized, stoping test",atom_getsymbolarg(j,argc,argv)->s_name);
+ pd_error(x,"Option \"%s\" not reconized, stoping test",atom_getsymbolarg(j,argc,argv)->s_name);
return(-1);
}
}
diff --git a/pmpd_test.c b/pmpd_test.c
index a8b9121..5d1d81d 100644
--- a/pmpd_test.c
+++ b/pmpd_test.c
@@ -89,7 +89,7 @@ int test_1d_mass(int i, t_pmpd *x, int argc, t_atom *argv)
}
else
{
- post("Option \"%s\" not reconized, stoping test",atom_getsymbolarg(j,argc,argv)->s_name);
+ pd_error(x,"Option \"%s\" not reconized, stoping test",atom_getsymbolarg(j,argc,argv)->s_name);
return(-1);
}
}
@@ -174,13 +174,13 @@ int test_1d_link(int i, t_pmpd *x, int argc, t_atom *argv)
}
else
{
- post("bad argument for connectedTo");
+ pd_error(x,"bad argument for connectedTo");
j+=1;
}
}
else
{
- post("Option \"%s\" not reconized, stoping test",atom_getsymbolarg(j,argc,argv)->s_name);
+ pd_error(x,"Option \"%s\" not reconized, stoping test",atom_getsymbolarg(j,argc,argv)->s_name);
return(-1);
}
}