aboutsummaryrefslogtreecommitdiff
path: root/externals/grill/flext/source/flbase.h
diff options
context:
space:
mode:
authorThomas Grill <xovo@users.sourceforge.net>2004-12-31 04:58:29 +0000
committerThomas Grill <xovo@users.sourceforge.net>2004-12-31 04:58:29 +0000
commit7873938d18daf4a94ca77eeb970457f89e679374 (patch)
tree8de0488af4f068ad7aa37f1ffc08482e04efb258 /externals/grill/flext/source/flbase.h
parent889c04fdf4fa9239c7442ed3b381ad5d004782f1 (diff)
fix for showing attributes on select (and recreate the object on edit)
reconsidered flext::buffer:Update build system for flext-based externals added object construction and destruction flags svn path=/trunk/; revision=2438
Diffstat (limited to 'externals/grill/flext/source/flbase.h')
-rw-r--r--externals/grill/flext/source/flbase.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/externals/grill/flext/source/flbase.h b/externals/grill/flext/source/flbase.h
index a9a9d8e5..47db0618 100644
--- a/externals/grill/flext/source/flbase.h
+++ b/externals/grill/flext/source/flbase.h
@@ -219,6 +219,9 @@ class FLEXT_SHARE FLEXT_CLASSDEF(flext_obj):
//! Flag for successful object construction
bool init_ok;
+ // flags for init and exit procedure;
+ static bool initing,exiting;
+
public:
//! Creation callback
@@ -242,6 +245,14 @@ class FLEXT_SHARE FLEXT_CLASSDEF(flext_obj):
//! Check whether construction was successful
bool InitOk() const { return init_ok; }
+ /*! Return true if in object initialization phase
+ true when in constructor or Init, false when in Finalize
+ */
+ static bool Initing() { return initing; }
+
+ //! Return true if in object destruction phase (Exit or destructor)
+ static bool Exiting() { return exiting; }
+
// Definitions for library objects
static void lib_init(const char *name,void setupfun(),bool attr);
static void obj_add(bool lib,bool dsp,bool attr,const char *idname,const char *names,void setupfun(t_classid),FLEXT_CLASSDEF(flext_obj) *(*newfun)(int,t_atom *),void (*freefun)(flext_hdr *),int argtp1,...);