home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The C Users' Group Library 1994 August
/
wc-cdrom-cusersgrouplibrary-1994-08.iso
/
listings
/
v_10_09
/
1009020b
< prev
next >
Wrap
Text File
|
1992-07-08
|
252b
|
18 lines
// LISTING 2
#include "jmpstack.h"
extern void terminate();
jmp_buf& JmpStack::operator++()
{
if(++current == SIZE) terminate();
return stack[current];
}
jmp_buf& JmpStack::operator--()
{
if(current < 0) terminate();
return stack[current--];
}