Skip to content
Snippets Groups Projects
Commit 135570ef authored by pokergaming's avatar pokergaming
Browse files

* suppress printing the full list of classes when using the "print" method...

* suppress printing the full list of classes when using the "print" method with [pdinfo] (just show number of loaded classes and an informative message)
parent a59cb85f
No related branches found
No related tags found
No related merge requests found
...@@ -474,9 +474,20 @@ void pdinfo_audio_api(t_pdinfo *x, t_symbol *s, int argc, t_atom *argv) ...@@ -474,9 +474,20 @@ void pdinfo_audio_api(t_pdinfo *x, t_symbol *s, int argc, t_atom *argv)
void pdinfo_classtable(t_pdinfo *x, t_symbol *s, int argc, t_atom *argv) void pdinfo_classtable(t_pdinfo *x, t_symbol *s, int argc, t_atom *argv)
{ {
int size = classtable_size(); int size = classtable_size();
t_atom at[size]; if (info_to_console)
classtable_tovec(size, at); {
info_out((t_text *)x, s, size, at); t_atom at[2];
SETFLOAT(at, size);
SETSYMBOL(at+1, gensym("classes loaded (\"classtable\" outputs "
"the full list)"));
info_out((t_text *)x, s, 2, at);
}
else
{
t_atom at[size];
classtable_tovec(size, at);
info_out((t_text *)x, s, size, at);
}
} }
void pdinfo_audioin(t_pdinfo *x, t_symbol *s, int argc, t_atom *arg) void pdinfo_audioin(t_pdinfo *x, t_symbol *s, int argc, t_atom *arg)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment