From c336a354e41391f4a78b06eaf7e4ba525cd3d9d4 Mon Sep 17 00:00:00 2001 From: Yuichi Nishiwaki Date: Tue, 26 Nov 2013 09:09:15 -0800 Subject: [PATCH] publish pic_defmacro as a public API --- include/picrin.h | 1 + src/macro.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/include/picrin.h b/include/picrin.h index 40c27b36..c69b2d46 100644 --- a/include/picrin.h +++ b/include/picrin.h @@ -101,6 +101,7 @@ void pic_close(pic_state *); struct pic_proc *pic_get_proc(pic_state *); int pic_get_args(pic_state *, const char *, ...); void pic_defun(pic_state *, const char *, pic_func_t); +void pic_defmacro(pic_state *, const char *, struct pic_proc *); pic_sym pic_intern_cstr(pic_state *, const char *); const char *pic_symbol_name(pic_state *, pic_sym); diff --git a/src/macro.c b/src/macro.c index 3576ec3b..79cc83cd 100644 --- a/src/macro.c +++ b/src/macro.c @@ -11,7 +11,7 @@ #define FALLTHROUGH ((void)0) -static void +void pic_defmacro(pic_state *pic, const char *name, struct pic_proc *macro) { int idx;