aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Blechmann <timblech@users.sourceforge.net>2004-06-20 14:39:51 +0000
committerTim Blechmann <timblech@users.sourceforge.net>2004-06-20 14:39:51 +0000
commitfccbe2b4b829460a905a675e41119e90da8a4c44 (patch)
tree6f1e90bf30910c1041fe6bc321b0db9fa263a690
parentb8bf4f0f66c58e6145b05e128a2ea6ab35e011d2 (diff)
added macros to bang outlet and to access values
svn path=/trunk/externals/k_cext/; revision=1825
-rw-r--r--k_cext.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/k_cext.h b/k_cext.h
index 1b1741a..636d45f 100644
--- a/k_cext.h
+++ b/k_cext.h
@@ -106,6 +106,11 @@ do{ \
#define INTSORT(a,b) qsort((void *)(a),b, sizeof (int), k_cext_intcompare);
#define FLOATSORT(a,b) qsort((void *)(a),b, sizeof (float), k_cext_floatcompare);
+/* TB: values and bang outlets */
+#define VALUE(char) (*(value_get(gensym(char))))
+#define SETVALUE(char,float) value_setfloat(gensym(char),float)
+#define Ob(a) outlet_bang(x->outlets[a]);
+
#define IF if(
#define FOR for(