Przemyslaw Czerpak pisze:
On Sat, 02 Feb 2008, Marek Paliwoda wrote:
Hi All,
void* ptr = hb_parptrGC( hb_fctx_destructor, 1 );
Could someone explain me what is the purpose of hb_parptrGC() ?
It's used for verification if given parameter holds pointer item
with pointer which points to structure allocated by
hb_gcAlloc( size, hb_fctx_destructor ). It means that your code
will not accept other pointer types and GPF unexpectly.
So it will return NULL if the item does not hold
a value allocated by hb_gcAlloc() with a requirerd
"finalizer" ? Ok, I understand. Thanks.
--
Marek
----------------------------------------------------------------------
Zmus swojego faceta, zeby to przeczytal
Kliknij >>> http://link.interia.pl/f1ceb
_______________________________________________
Harbour mailing list
Harbour@harbour-project.org
http://lists.harbour-project.org/mailman/listinfo/harbour