aboutsummaryrefslogtreecommitdiff
path: root/externals/grill/flext/source/fldefs_methbind.h
diff options
context:
space:
mode:
authorThomas Grill <xovo@users.sourceforge.net>2003-04-20 02:36:20 +0000
committerThomas Grill <xovo@users.sourceforge.net>2003-04-20 02:36:20 +0000
commit8248ce3d66a19f77ffe10ded4b922cf0606f47a4 (patch)
treeb94d6a69e6b481ec0da134fe42bce488cb329b9d /externals/grill/flext/source/fldefs_methbind.h
parent0aac9d7803bc367ec22ed9df292d8a71d6013b55 (diff)
""
svn path=/trunk/; revision=579
Diffstat (limited to 'externals/grill/flext/source/fldefs_methbind.h')
-rw-r--r--externals/grill/flext/source/fldefs_methbind.h41
1 files changed, 41 insertions, 0 deletions
diff --git a/externals/grill/flext/source/fldefs_methbind.h b/externals/grill/flext/source/fldefs_methbind.h
new file mode 100644
index 00000000..977e22f8
--- /dev/null
+++ b/externals/grill/flext/source/fldefs_methbind.h
@@ -0,0 +1,41 @@
+/*
+
+flext - C++ layer for Max/MSP and pd (pure data) externals
+
+Copyright (c) 2001-2003 Thomas Grill (xovo@gmx.net)
+For information on usage and redistribution, and for a DISCLAIMER OF ALL
+WARRANTIES, see the file, "license.txt," in this distribution.
+
+*/
+
+/*! \file fldefs_methbind.h
+ \brief This file contains all #defines for actual usage
+
+*/
+
+#ifndef __FLEXT_DEFS_METHBIND_H
+#define __FLEXT_DEFS_METHBIND_H
+
+
+/*! \defgroup FLEXT_D_BINDMETHOD Bind flext methods to symbols
+ @{
+*/
+
+/*! \brief Bind a handler for a method with an anything argument to a symbol
+*/
+#define FLEXT_BINDMETHOD(SYM,M_FUN,DATA) \
+\
+BindMethod(SYM,FLEXT_CALL_PRE(M_FUN),DATA)
+
+/*! \brief Unbind any handler for a method from a symbol
+ \note Memory associated to the DATA parameter of FLEXT_BINDMETHOD will *not* be freed here.
+*/
+#define FLEXT_UNBINDMETHOD(SYM) \
+\
+UnbindMethod(SYM)
+
+
+//! @} FLEXT_D_BINDMETHOD
+
+
+#endif