this repo has no description

:sparkles: (Janet) chapter 9

Changed files
+24
Janet
+3
Janet/chapter9/main.janet
··· 1 + (import set) 2 + 3 + (set/hello)
+5
Janet/chapter9/project.janet
··· 1 + (declare-project :name "set") 2 + 3 + (declare-native 4 + :name "set" 5 + :source ["set.c"])
+16
Janet/chapter9/set.c
··· 1 + #include <janet.h> 2 + 3 + static Janet cfun_hello(int32_t argc, Janet *argv) { 4 + janet_fixarity(argc, 0); 5 + printf("hello world\n"); 6 + return janet_wrap_nil(); 7 + } 8 + 9 + static JanetReg cfuns[] = { 10 + {"hello", cfun_hello, "(hello)\n\nprints hello"}, 11 + {NULL, NULL, NULL} 12 + }; 13 + 14 + JANET_MODULE_ENTRY(JanetTable *env) { 15 + janet_cfuns(env, "set", cfuns); 16 + }