Initial import
This commit is contained in:
24
third_party/duktape/duk_jmpbuf.h
vendored
Normal file
24
third_party/duktape/duk_jmpbuf.h
vendored
Normal file
@@ -0,0 +1,24 @@
|
||||
/*
|
||||
* 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
|
||||
*/
|
||||
|
||||
#if !defined(DUK_JMPBUF_H_INCLUDED)
|
||||
#define DUK_JMPBUF_H_INCLUDED
|
||||
|
||||
#if defined(DUK_USE_CPP_EXCEPTIONS)
|
||||
struct duk_jmpbuf {
|
||||
duk_small_int_t dummy; /* unused */
|
||||
};
|
||||
#else
|
||||
struct duk_jmpbuf {
|
||||
DUK_JMPBUF_TYPE jb;
|
||||
};
|
||||
#endif
|
||||
|
||||
#endif /* DUK_JMPBUF_H_INCLUDED */
|
||||
Reference in New Issue
Block a user