At 2:23 AM +0100 19-02-00, David Tribble wrote:
>You don't get the message in the non-debug ROM, so I'm wondering if this is
>a pleasant warning that is handled gracefully, or am I entering dangerous
>territory?
Pleasant warning, handled gracefully. Basically, pop is a no-op when
there's nothing to pop on a release ROM. On a debug ROM, you get the
warning but can continue.
Note that there are limited stack elements. When you're out, push also
becomes a no-op. (You get a warning on debug ROMs.) So if you push X+1
times, then the next pop you do will also be a no-op, because there's
nothing to pop!
Normally no one will ever run into this, as pushes and pops should not be
nested very deeply, and should always balance.
--Bob
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palm.com/devzone/mailinglists.html