Revision: 10287 http://pure-data.svn.sourceforge.net/pure-data/?rev=10287&view=rev Author: zmoelnig Date: 2008-09-16 07:21:49 +0000 (Tue, 16 Sep 2008)
Log Message: ----------- [classloader]: added help-patch; check whether pd_objectmaker is there
Modified Paths: -------------- trunk/externals/iem/iemguts/src/classtest.c
Added Paths: ----------- trunk/externals/iem/iemguts/help/classloader-help.pd
Added: trunk/externals/iem/iemguts/help/classloader-help.pd =================================================================== --- trunk/externals/iem/iemguts/help/classloader-help.pd (rev 0) +++ trunk/externals/iem/iemguts/help/classloader-help.pd 2008-09-16 07:21:49 UTC (rev 10287) @@ -0,0 +1,32 @@ +#N canvas 0 0 957 437 10; +#X obj 90 56 classtest; +#X text 167 55 check the availability of object-classes; +#X obj 154 292 classtest; +#X floatatom 154 318 5 0 0 0 - - -; +#X text 233 313 1..class exists; +#X text 233 328 0..class does not exist; +#X obj 154 226 symbol; +#X msg 154 106 f; +#X text 197 107 check for [f] (should always evaluate to 'true'); +#X msg 170 138 niagara; +#X text 239 164 check for [qwert]; +#X msg 184 167 qwert; +#X text 70 364 note: "classes" are object that Pd knows about (internals +, or externals (with a classloader)). Currently "abstractions" are +_not_ treated as full-featured classes , therefore testing for abstractions +will result in 'false'.; +#X msg 188 203 classloader-help; +#X symbolatom 154 259 0 0 0 0 - - -; +#X text 374 165 (probably this will always evaluate as 'false'); +#X text 226 139 check for [niagara] (evaluates to 'true' if zexy is +loaded); +#X text 317 202 check for this abstraction (evaluates as 'false'!) +; +#X text 558 292 (c)opyleft 2008 IOhannes m zm\xF6lnig @ iem; +#X connect 2 0 3 0; +#X connect 6 0 14 0; +#X connect 7 0 6 0; +#X connect 9 0 6 0; +#X connect 11 0 6 0; +#X connect 13 0 6 0; +#X connect 14 0 2 0;
Modified: trunk/externals/iem/iemguts/src/classtest.c =================================================================== --- trunk/externals/iem/iemguts/src/classtest.c 2008-09-15 17:23:48 UTC (rev 10286) +++ trunk/externals/iem/iemguts/src/classtest.c 2008-09-16 07:21:49 UTC (rev 10287) @@ -41,6 +41,10 @@ static void classtest_symbol(t_classtest *x, t_symbol*s) { t_float result=0.; + if(!pd_objectmaker) { + pd_error(x, "[classtest]: couldn't find pd_objectmaker!"); + return; + } if(0!=zgetfn(&pd_objectmaker, s)) result=1.;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.