On Thu, Dec 16, 1999 at 04:35:07PM -0500, Thomas Ward wrote:
> Hi All,
> 
> I have a routine that in some places in my code I call directly, and in
> other places I call via a callback. Is there any reason why that shouldn't
> work? Since I am using GCC, do I need to put CALLBACK_PROLOGUE and
> CALLBACK_EPILOGUE in such a routine? Can it cause a problem to have
> CALLBACK_PROLOGUE and CALLBACK_EPILOGUE where they are NOT needed?

Functions called by your code do not need CALLBACK_{PRO,EPI}LOGUE,
although there is no problem with having them unnecessarily (as long as
they are properly balanced - e.g. you must have a CALLBACK_EPILOGUE
before every return).  Functions called by PalmOS (e.g. form event
handlers, list draw functions) must have CALLBACK_{PRO,EPI}LOGUE if they
access global variables.  

-Ben
-- 
Ben Darnell              [EMAIL PROTECTED]
http://thoughtstream.org

Reply via email to