aboutsummaryrefslogtreecommitdiff
path: root/src/zexy.c
diff options
context:
space:
mode:
authorIOhannes m zmölnig <zmoelnig@users.sourceforge.net>2007-03-08 13:10:54 +0000
committerIOhannes m zmölnig <zmoelnig@users.sourceforge.net>2007-03-08 13:10:54 +0000
commit75b7d3f788c462156b4e84170e3ab4e78187ae50 (patch)
tree35ff6a84a144e7c9a1f5f18499eb8d68c23d0d66 /src/zexy.c
parentefc81ddebf968cdbc91d74e627fbba339bd4987a (diff)
provide our own verbose() function, in case pd is lacking one;
this is important when compiling the zexy binary against newer pd-versions but really running it on outdated versions svn path=/trunk/externals/zexy/; revision=7480
Diffstat (limited to 'src/zexy.c')
-rw-r--r--src/zexy.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/zexy.c b/src/zexy.c
index 6ff8261..aca440d 100644
--- a/src/zexy.c
+++ b/src/zexy.c
@@ -21,6 +21,7 @@
#include "zexy.h"
#include "z_zexy.h"
+#include <stdarg.h>
/* do a little help thing */
@@ -144,3 +145,16 @@ void zexy_setup(void)
zexy_register("zexy");
}
+
+void verbose(int level, const char *fmt, ...){
+ char buf[MAXPDSTRING];
+ va_list ap;
+ t_int arg[8];
+ int i;
+
+ va_start(ap, fmt);
+ vsnprintf(buf, MAXPDSTRING-1, fmt, ap);
+ va_end(ap);
+
+ post("zverbose(%d): %s", level, buf);
+}