Skip to content

Commit

Permalink
use pd_error() instead of error()
Browse files Browse the repository at this point in the history
Closes: #29
  • Loading branch information
umlaeute committed Dec 20, 2021
1 parent 745c9a8 commit d837c73
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions external/abl_link~.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ static void abl_link_tilde_reset(t_abl_link_tilde *x, t_symbol *s,
x->reset_flag = 1;
switch (argc) {
default:
error("abl_link~ reset: Unexpected number of parameters: %d", argc);
pd_error(x, "abl_link~ reset: Unexpected number of parameters: %d", argc);
case 2:
x->quantum = atom_getfloat(argv + 1);
case 1:
Expand All @@ -140,7 +140,7 @@ static void *abl_link_tilde_new(t_symbol *s, int argc, t_atom *argv) {
double initial_tempo = 120.0;
switch (argc) {
default:
error("abl_link~: Unexpected number of creation args: %d", argc);
pd_error(x, "abl_link~: Unexpected number of creation args: %d", argc);
case 4:
initial_tempo = atom_getfloat(argv + 3);
case 3:
Expand Down

0 comments on commit d837c73

Please sign in to comment.