aboutsummaryrefslogtreecommitdiff
path: root/externals/grill/flext/source/flbase.h
diff options
context:
space:
mode:
authorThomas Grill <xovo@users.sourceforge.net>2003-12-12 03:41:32 +0000
committerThomas Grill <xovo@users.sourceforge.net>2003-12-12 03:41:32 +0000
commitdd500deadc8cc4577a305a9f1fe438786671f9e6 (patch)
tree4e73ff62c4a697446570a2f64c470978b7725204 /externals/grill/flext/source/flbase.h
parentc0ca4188c9813ddb28076c025fdcd3f4f100abeb (diff)
""
svn path=/trunk/; revision=1217
Diffstat (limited to 'externals/grill/flext/source/flbase.h')
-rw-r--r--externals/grill/flext/source/flbase.h9
1 files changed, 4 insertions, 5 deletions
diff --git a/externals/grill/flext/source/flbase.h b/externals/grill/flext/source/flbase.h
index 789a0855..594bfbfc 100644
--- a/externals/grill/flext/source/flbase.h
+++ b/externals/grill/flext/source/flbase.h
@@ -139,9 +139,8 @@ class FLEXT_SHARE FLEXT_CLASSDEF(flext_obj):
t_canvas *thisCanvas() const { return m_canvas; }
//! Get the PD or Max/MSP object
- t_sigobj *thisHdr() { return &x_obj->obj; }
- //! Get the PD or Max/MSP object
- const t_sigobj *thisHdr() const { return &x_obj->obj; }
+ t_sigobj *thisHdr() { FLEXT_ASSERT(x_obj); return &x_obj->obj; }
+ const t_sigobj *thisHdr() const { FLEXT_ASSERT(x_obj); return &x_obj->obj; }
//! Get the class name (as a string)
const char *thisName() const { return GetString(m_name); }
//! Get the class name (as a symbol)
@@ -150,9 +149,9 @@ class FLEXT_SHARE FLEXT_CLASSDEF(flext_obj):
//! Get the class pointer
#if FLEXT_SYS == FLEXT_SYS_PD
- t_class *thisClass() const { return (t_class *)((t_object *)(x_obj))->te_g.g_pd; }
+ t_class *thisClass() const { FLEXT_ASSERT(x_obj); return (t_class *)((t_object *)(x_obj))->te_g.g_pd; }
#elif FLEXT_SYS == FLEXT_SYS_MAX
- t_class *thisClass() const { return (t_class *)(((t_tinyobject *)x_obj)->t_messlist-1); }
+ t_class *thisClass() const { FLEXT_ASSERT(x_obj); return (t_class *)(((t_tinyobject *)x_obj)->t_messlist-1); }
#elif FLEXT_SYS == FLEXT_SYS_JMAX
t_class *thisClass() const { return fts_object_get_class((fts_object_t *)thisHdr()); }
#else