From fccbe2b4b829460a905a675e41119e90da8a4c44 Mon Sep 17 00:00:00 2001 From: Tim Blechmann Date: Sun, 20 Jun 2004 14:39:51 +0000 Subject: added macros to bang outlet and to access values svn path=/trunk/externals/k_cext/; revision=1825 --- k_cext.h | 5 +++++ 1 file changed, 5 insertions(+) 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( -- cgit v1.2.1