I have much code writing using something like this:

HB_FUNC (TEST)
(
   some *pPtr;

   if (! ISPOINTER (1))
       return;

   pPtr = (add *) hb_parptr (1);
   ... more code here
)

As I understand it then from now on the right would add a further validation as:

HB_FUNC (TEST)
(
   some *pPtr;

   if (! ISPOINTER (1))
      return;

   pPtr = (add *) hb_parptr (1);

   if (! pPtr)
      return;

   ... more code here
)

Brgds,
Vailton Renato
_______________________________________________
Harbour mailing list
Harbour@harbour-project.org
http://lists.harbour-project.org/mailman/listinfo/harbour

Reply via email to