aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/include/janet.h
diff options
context:
space:
mode:
authorAndrew Owen <yumaikas94@gmail.com>2021-07-27 18:43:32 -0600
committerAndrew Owen <yumaikas94@gmail.com>2021-07-27 18:43:32 -0600
commitb289f253c7b9c14bf78ce5b78088d2c59c36ec72 (patch)
tree1e5558e68f88e0b5c95ebf190a7470972618a0b9 /src/include/janet.h
parentAdd rselect bindings (diff)
Remove static function from the JANET_FN family of macros
Diffstat (limited to 'src/include/janet.h')
-rw-r--r--src/include/janet.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/include/janet.h b/src/include/janet.h
index 13a235f8..2666048c 100644
--- a/src/include/janet.h
+++ b/src/include/janet.h
@@ -1765,26 +1765,26 @@ JANET_API Janet janet_resolve_core(const char *name);
/* no docstrings or sourcemaps */
#define JANET_REG_(JNAME, CNAME) {JNAME, CNAME, NULL, NULL, 0}
#define JANET_FN_(CNAME, USAGE, DOCSTRING) \
- static Janet CNAME (int32_t argc, Janet *argv)
+ Janet CNAME (int32_t argc, Janet *argv)
/* sourcemaps only */
#define JANET_REG_S(JNAME, CNAME) {JNAME, CNAME, NULL, __FILE__, CNAME##_sourceline_}
#define JANET_FN_S(CNAME, USAGE, DOCSTRING) \
static int32_t CNAME##_sourceline_ = __LINE__; \
- static Janet CNAME (int32_t argc, Janet *argv)
+ Janet CNAME (int32_t argc, Janet *argv)
/* docstring only */
#define JANET_REG_D(JNAME, CNAME) {JNAME, CNAME, CNAME##_docstring_, NULL, 0}
#define JANET_FN_D(CNAME, USAGE, DOCSTRING) \
static const char CNAME##_docstring_[] = USAGE "\n\n" DOCSTRING; \
- static Janet CNAME (int32_t argc, Janet *argv)
+ Janet CNAME (int32_t argc, Janet *argv)
/* sourcemaps and docstrings */
#define JANET_REG_SD(JNAME, CNAME) {JNAME, CNAME, CNAME##_docstring_, __FILE__, CNAME##_sourceline_}
#define JANET_FN_SD(CNAME, USAGE, DOCSTRING) \
static int32_t CNAME##_sourceline_ = __LINE__; \
static const char CNAME##_docstring_[] = USAGE "\n\n" DOCSTRING; \
- static Janet CNAME (int32_t argc, Janet *argv)
+ Janet CNAME (int32_t argc, Janet *argv)
/* Choose defaults for source mapping and docstring based on config defs */
#if defined(JANET_NO_SOURCEMAPS) && defined(JANET_NO_DOCSTRINGS)