Commit d6b0d8b2 authored by Ivica Bukvic's avatar Ivica Bukvic
Browse files

reverted $@ improvement as it has proven inconsistent

parent 4fa894de
......@@ -797,21 +797,13 @@ void binbuf_eval(t_binbuf *x, t_pd *target, int argc, t_atom *argv)
// error("message stack overflow");
// goto broken;
//}
if (0<argc) {
for (i=0; i<argc; i++)
{
//fprintf(stderr, "@: %d %d\n", i, maxnargs);
*msp++=argv[i];
nargs++;
ac--;
}
} else {
for (i=0; i<argc; i++)
{
//fprintf(stderr, "@: %d %d\n", i, maxnargs);
// we use this when $@ has no arguments (e.g. receives a bang) and convert it to 0 just like we do with $n that has no argument associated with it
SETFLOAT(msp, 0);
*msp++=argv[i];
nargs++;
msp++;
}
ac--;
}
msp--;
nargs--;
//fprintf(stderr,"x->b_n=%d ac=%d maxnargs=%d nargs=%d argc=%d\n", x->b_n, ac, maxnargs, nargs, argc);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment