Browse Source

remove macro definition of longjmp from setjmp.h

the C standard specifies that setjmp is a macro, but longjmp is a
normal function. a macro version of it would be permitted (albeit
useless) for C (not C++), but would have to be a function-like macro,
not an object-like one.
Rich Felker 10 năm trước cách đây
mục cha
commit
5e25d87b09
1 tập tin đã thay đổi với 0 bổ sung1 xóa
  1. 0 1
      include/setjmp.h

+ 0 - 1
include/setjmp.h

@@ -33,7 +33,6 @@ int setjmp (jmp_buf);
 _Noreturn void longjmp (jmp_buf, int);
 
 #define setjmp setjmp
-#define longjmp longjmp
 
 #ifdef __cplusplus
 }