Commit 3f3f4a38 authored by thomas's avatar thomas
Browse files

no message


git-svn-id: https://svn.grrrr.org/ext/trunk@277 4d9ac71a-51e6-0310-8455-cad1006bcd31
parent ee889e7f
......@@ -78,6 +78,10 @@ see flext.h for the documented base classes
Version history:
0.3.3:
- Bind/unbind functions for flext classes
- Made "t_symtype" another synonym for "t_symbol *"
0.3.2:
- doxygen generated inline documentation / functional reference
- added some more functionality to the AtomAnything class
......
......@@ -306,6 +306,8 @@ return 0; \
#define FLEXTTYPE_t_symptr A_SYMBOL
#define CALLBTYPE_t_symptr t_symptr
#define FLEXTTYPE_t_symtype A_SYMBOL
#define CALLBTYPE_t_symtype t_symptr
#define FLEXTTYPE_t_ptrtype A_POINTER
#define CALLBTYPE_t_ptrtype t_ptrtype
......@@ -347,6 +349,7 @@ return 0; \
#define ARGMEMBER_int i //*
#define ARGMEMBER_float f
#define ARGMEMBER_t_symptr s
#define ARGMEMBER_t_symtype s
#define ARGCAST(arg,tp) arg.ARGMEMBER_##tp
//#define EXTPROTO_0 extern "C" FLEXT_EXT
......@@ -721,6 +724,7 @@ void FLEXT_STPF(NEW_CLASS,DSP)() \
#define FLEXTARG_bool a_int
#define FLEXTARG_t_float a_float
#define FLEXTARG_t_symtype a_symbol
#define FLEXTARG_t_symptr a_symbol
#define FLEXTARG_t_ptrtype a_pointer
#define FLEXTARG(TP) FLEXTARG_ ## TP
......
......@@ -373,6 +373,21 @@ public:
//! Check for symbol and get string
static const char *GetAString(const t_symbol *s) { return s?s->s_name:""; }
// --- bind/unbind ---------------------------------------
#ifdef PD
void Bind(const t_symbol *s) { pd_bind(&thisHdr()->ob_pd,const_cast<t_symbol *>(s)); }
void Bind(const char *c) { Bind(MakeSymbol(c)); }
void Unbind(const t_symbol *s) { pd_unbind(&thisHdr()->ob_pd,const_cast<t_symbol *>(s)); }
void Unbind(const char *c) { Unbind(MakeSymbol(c)); }
#else
#pragma message("Bind/Unbind not implemented!);
#endif
// Low level
//! Bind object to a symbol
static void DoUnbind(t_symbol *s,flext_obj *o);
//! Unbind object from a symbol
......
......@@ -64,6 +64,7 @@ typedef t_gpointer *t_ptrtype;
typedef t_float t_flint;
typedef t_symbol *t_symptr;
typedef t_symbol *t_symtype;
typedef t_class **t_thing;
typedef t_clock t_qelem;
......@@ -92,6 +93,7 @@ typedef t_patcher t_canvas;
typedef t_int t_flint;
typedef t_symbol *t_symptr;
typedef t_symbol *t_symtype;
typedef t_object *t_thing;
typedef qelem t_qelem;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment