I've got a chunk of code in a callback function that I want to move to a GOSUB block as it's used about 10 times in different places.
Part of the code has error handling that should either exit from the function or close the associated dialog. In these cases, I'd like to go ahead and do what's required from the GOSUB block.
To maintain stack integrity, I just need to !pop a LONG/DWORD value, right? Ie. something like this:
Part of the code has error handling that should either exit from the function or close the associated dialog. In these cases, I'd like to go ahead and do what's required from the GOSUB block.
To maintain stack integrity, I just need to !pop a LONG/DWORD value, right? Ie. something like this:
Code:
IF <errorcondition> THEN !pop lReturnAddress DIALOG END CB.HNDL, 0 EXIT FUNCTION END IF
Comment