We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d3ec7b0 commit aae01d0Copy full SHA for aae01d0
cpp/common/test/includes/standard-library/csetjmp
@@ -0,0 +1,12 @@
1
+#ifndef _GHLIBCPP_CSETJMP
2
+#define _GHLIBCPP_CSETJMP
3
+
4
+#include "setjmp.h"
5
6
+// C++ std namespace declarations
7
+namespace std {
8
+using ::jmp_buf;
9
+using ::longjmp;
10
+} // namespace std
11
12
+#endif // _GHLIBCPP_CSETJMP
cpp/common/test/includes/standard-library/setjmp.h
@@ -1,14 +1,12 @@
#ifndef _GHLIBCPP_SETJMP
#define _GHLIBCPP_SETJMP
-
-struct __jmp_buf_tag
- {
- int x;
- };
+struct __jmp_buf_tag {
+ int x;
+};
typedef struct __jmp_buf_tag jmp_buf[1];
-void longjmp (struct __jmp_buf_tag __env[1], int __val);
13
-#define setjmp(env) 0
+[[noreturn]] void longjmp(struct __jmp_buf_tag __env[1], int __val);
+#define setjmp(env) 0
14
#endif
0 commit comments