add FALLTHROUGH macro

This commit is contained in:
Yuichi Nishiwaki 2014-01-30 14:13:01 +09:00
parent 7c35e50260
commit 4d95707db5
3 changed files with 2 additions and 5 deletions

View File

@ -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"

View File

@ -19,8 +19,6 @@
# error enable PIC_NONE_IS_FALSE
#endif
#define FALLTHROUGH ((void)0)
static struct pic_irep *
new_irep(pic_state *pic)
{

View File

@ -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 *);