home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The C Users' Group Library 1994 August
/
wc-cdrom-cusersgrouplibrary-1994-08.iso
/
listings
/
v_10_09
/
1009020a
< prev
next >
Wrap
Text File
|
1992-07-08
|
257b
|
21 lines
// LISTING 1
#ifndef JMPSTACK_H
#define JMPSTACK_H
#include <setjmp.h>
class JmpStack {
enum {SIZE=100};
jmp_buf stack[SIZE];
int current;
public:
JmpStack() {current = -1;}
jmp_buf& operator++(); // push
jmp_buf& operator--(); // pop
};
#endif