[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: little error in CustomProbeMap ?
From: |
Marcus G. Daniels |
Subject: |
Re: little error in CustomProbeMap ? |
Date: |
08 May 2001 10:19:32 -0600 |
User-agent: |
Gnus/5.070084 (Pterodactyl Gnus v0.84) Emacs/20.7 |
>>>>> "DK" == Daniel Kottow <address@hidden> writes:
DK> IOW, shouldnt it be possible not to have any ivars in the probemap?
Yes, it's fixed in today's snapshot.
ftp://ftp.swarm.org/pub/swarm/src/testing/swarm-2001-05-08.tar.gz
Here's a test case:
#import <simtools.h> // initSwarm
#import <simtoolsgui.h> // CREATE_PROBE_DISPLAY
#import <objectbase/SwarmObject.h>
#import <objectbase.h> // CustomProbeMap
@interface MyClass: SwarmObject
{
}
- (void)method1: (unsigned)val;
- (void)method2: (unsigned)val;
@end
@implementation MyClass
- (void)method1: (unsigned)val
{
printf ("method1: %u\n", val);
}
- (void)method2: (unsigned)val
{
printf ("method2: %u\n", val);
}
@end
int
main (int argc, const char **argv)
{
initSwarm (argc, argv);
{
id obj = [MyClass create: globalZone];
Class class = [obj getClass];
id probeMap = [CustomProbeMap create: globalZone
forClass: class
withIdentifiers:
":",
"method1:",
"method2:",
NULL];
[probeLibrary setProbeMap: probeMap For: class];
CREATE_PROBE_DISPLAY (obj);
while (1) { while (GUI_EVENT_ASYNC ()) {} }
}
}
/*
Local Variables:
compile-command: "$SWARMHOME/bin/libtool-swarm --mode=link gcc -D_GNU_SOURCE -o
TestCustomProbeMap -g -Wno-import -I$SWARMHOME/include/swarm
-L$SWARMHOME/lib/swarm TestCustomProbeMap.m -lswarm -lobjc"
End:
*/
==================================
Swarm-Support is for discussion of the technical details of the day
to day usage of Swarm. For list administration needs (esp.
[un]subscribing), please send a message to <address@hidden>
with "help" in the body of the message.