mirror of https://github.com/svaarala/duktape.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
525 B
25 lines
525 B
12 years ago
|
/*
|
||
|
* Wrapper for jmp_buf.
|
||
|
*
|
||
|
* This is used because jmp_buf is an array type for backward compatibility.
|
||
|
* Wrapping jmp_buf in a struct makes pointer references, sizeof, etc,
|
||
|
* behave more intuitively.
|
||
|
*
|
||
|
* http://en.wikipedia.org/wiki/Setjmp.h#Member_types
|
||
|
*/
|
||
|
|
||
12 years ago
|
#ifndef DUK_JMPBUF_H_INCLUDED
|
||
|
#define DUK_JMPBUF_H_INCLUDED
|
||
12 years ago
|
|
||
9 years ago
|
#if defined(DUK_USE_CPP_EXCEPTIONS)
|
||
12 years ago
|
struct duk_jmpbuf {
|
||
9 years ago
|
duk_small_int_t dummy; /* unused */
|
||
|
};
|
||
10 years ago
|
#else
|
||
9 years ago
|
struct duk_jmpbuf {
|
||
|
DUK_JMPBUF_TYPE jb;
|
||
12 years ago
|
};
|
||
9 years ago
|
#endif
|
||
12 years ago
|
|
||
12 years ago
|
#endif /* DUK_JMPBUF_H_INCLUDED */
|