Commit 906a982 sogaiu
committed
1 parent 88e60c3 commit 906a982 Copy full SHA for 906a982
File tree 2 files changed +11
-1
lines changed
2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -700,7 +700,15 @@ JANET_CORE_FN(janet_core_is_lengthable,
700
700
701
701
JANET_CORE_FN (janet_core_signal ,
702
702
"(signal what x)" ,
703
- "Raise a signal with payload x. " ) {
703
+ "Raise a signal with payload x. `what` can be an integer\n"
704
+ "from 0 through 7 indicating user(0-7), or one of:\n\n"
705
+ "* :ok\n"
706
+ "* :error\n"
707
+ "* :debug\n"
708
+ "* :yield\n"
709
+ "* :user(0-7)\n"
710
+ "* :interrupt\n"
711
+ "* :await" ) {
704
712
janet_arity (argc , 1 , 2 );
705
713
Janet payload = argc == 2 ? argv [1 ] : janet_wrap_nil ();
706
714
if (janet_checkint (argv [0 ])) {
Original file line number Diff line number Diff line change @@ -79,6 +79,7 @@ const char *const janet_type_names[16] = {
79
79
"pointer"
80
80
};
81
81
82
+ /* Docstring for signal lists these */
82
83
const char * const janet_signal_names [14 ] = {
83
84
"ok" ,
84
85
"error" ,
@@ -96,6 +97,7 @@ const char *const janet_signal_names[14] = {
96
97
"await"
97
98
};
98
99
100
+ /* Docstring for fiber/status lists these */
99
101
const char * const janet_status_names [16 ] = {
100
102
"dead" ,
101
103
"error" ,
You can’t perform that action at this time.
0 commit comments