diff options
| author | 2021-08-22 10:23:18 -0500 | |
|---|---|---|
| committer | 2021-08-22 10:38:15 -0500 | |
| commit | 7734e77dfc7eede1140a25357df94dfa045a3a2f (patch) | |
| tree | 3735fa38c720b3194654b75ed617fd2de0ae60a2 /src/include/janet.h | |
| parent | Fix destruction order. (diff) | |
Readd the janet_register function.
Diffstat (limited to 'src/include/janet.h')
| -rw-r--r-- | src/include/janet.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/include/janet.h b/src/include/janet.h index 32e21d1a..0916c1d0 100644 --- a/src/include/janet.h +++ b/src/include/janet.h @@ -1852,6 +1852,9 @@ JANET_API void janet_cfuns_ext_prefix(JanetTable *env, const char *regprefix, co JANET_API void janet_def_sm(JanetTable *env, const char *name, Janet val, const char *documentation, const char *source_file, int32_t source_line); JANET_API void janet_var_sm(JanetTable *env, const char *name, Janet val, const char *documentation, const char *source_file, int32_t source_line); +/* Legacy definition of C functions */ +JANET_API void janet_register(const char *name, JanetCFunction cfun); + /* Allow setting entry name for static libraries */ #ifdef __cplusplus #define JANET_MODULE_PREFIX extern "C" |
