add FALLTHROUGH macro
This commit is contained in:
parent
7c35e50260
commit
4d95707db5
|
@ -33,13 +33,14 @@ extern "C" {
|
|||
#include <setjmp.h>
|
||||
#include <stdio.h>
|
||||
|
||||
/* noreturn */
|
||||
#if __STDC_VERSION__ >= 201112L
|
||||
# define NORETURN _Noreturn
|
||||
#elif __GNUC__ || __clang__
|
||||
# define NORETURN __attribute__((noreturn))
|
||||
#endif
|
||||
|
||||
#define FALLTHROUGH ((void)0)
|
||||
|
||||
#include "config.h"
|
||||
#include "picrin/value.h"
|
||||
|
||||
|
|
|
@ -19,8 +19,6 @@
|
|||
# error enable PIC_NONE_IS_FALSE
|
||||
#endif
|
||||
|
||||
#define FALLTHROUGH ((void)0)
|
||||
|
||||
static struct pic_irep *
|
||||
new_irep(pic_state *pic)
|
||||
{
|
||||
|
|
|
@ -13,8 +13,6 @@
|
|||
#include "picrin/lib.h"
|
||||
#include "xhash/xhash.h"
|
||||
|
||||
#define FALLTHROUGH ((void)0)
|
||||
|
||||
static pic_value macroexpand(pic_state *, pic_value, struct pic_senv *);
|
||||
static pic_value macroexpand_list(pic_state *, pic_value, struct pic_senv *);
|
||||
|
||||
|
|
Loading…
Reference in New Issue