Well... It requires argument of type "struct program" - where do I get this one (I don't have any end_program() calls in my module)?
If you don't have a program, why do you need to check if some argument is of this non-existing program?
/ Mirar
Previous text:
2004-02-03 13:45: Subject: Re: Object comparision in C module
On Tue, Feb 03, 2004 at 01:25:06PM +0100, Marcus Comstedt (ACROSS) (Hail Ilpalazzo!) @ Pike (-) developers forum wrote:
Usually if you need to know if an object is of a particular type from a C module, it's because you need to access the object's storage.
Exactly because of this :) But it would be nice to (just) query the type too (so I can be sure that two objects are of same class).
In this case you should use the get_storage() function, which will either return the storage or NULL if the object is not of the required type.
Well... It requires argument of type "struct program" - where do I get this one (I don't have any end_program() calls in my module)?
Regards, /Al
/ Brevbäraren