aboutsummaryrefslogtreecommitdiff
path: root/externals/grill/flext/source/fllib.cpp
diff options
context:
space:
mode:
authorThomas Grill <xovo@users.sourceforge.net>2003-01-06 11:04:56 +0000
committerThomas Grill <xovo@users.sourceforge.net>2003-01-06 11:04:56 +0000
commitea175e0b95f848dcd203e7fbc1941c20616ec4f5 (patch)
tree317f031122c40f98983605cfa6ffffb1f5e683e9 /externals/grill/flext/source/fllib.cpp
parent0e2151f42d9f0f5a4a25cf8bb90316a16a09191d (diff)
""
svn path=/trunk/; revision=324
Diffstat (limited to 'externals/grill/flext/source/fllib.cpp')
-rwxr-xr-xexternals/grill/flext/source/fllib.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/externals/grill/flext/source/fllib.cpp b/externals/grill/flext/source/fllib.cpp
index cd0c65d9..2d3aaa4c 100755
--- a/externals/grill/flext/source/fllib.cpp
+++ b/externals/grill/flext/source/fllib.cpp
@@ -270,8 +270,16 @@ void flext_obj::obj_add(bool lib,bool dsp,bool attr,const char *idname,const cha
va_end(marker);
}
+ // get unique class id
+#if FLEXT_SYS == FLEXT_SYS_PD
+ t_classid clid = lo->clss;
+#else
+ // in Max/MSP the t_class *value can't be used because it's possible that's it's not yet set!!
+ t_classid clid = lo;
+#endif
+
// make help reference
- flext_obj::DefineHelp(lo->clss,idname,extract(names,-1),dsp);
+ flext_obj::DefineHelp(clid,idname,extract(names,-1),dsp);
for(int ix = 0; ; ++ix) {
// in this loop register all the possible aliases of the object
@@ -296,14 +304,6 @@ void flext_obj::obj_add(bool lib,bool dsp,bool attr,const char *idname,const cha
#endif
}
- // get unique class id
-#if FLEXT_SYS == FLEXT_SYS_PD
- t_classid clid = lo->clss;
-#else
- // in Max/MSP the t_class *value can't be used because it's possible that's it's not yet set!!
- t_classid clid = lo;
-#endif
-
// call class setup function
setupfun(clid);
}