From 7873938d18daf4a94ca77eeb970457f89e679374 Mon Sep 17 00:00:00 2001 From: Thomas Grill Date: Fri, 31 Dec 2004 04:58:29 +0000 Subject: 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 --- externals/grill/flext/source/flbase.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'externals/grill/flext/source/flbase.h') 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,...); -- cgit v1.2.1