From ff23dbbc14b0820697deeb755b21e43a3da846ba Mon Sep 17 00:00:00 2001 From: "K. Lange" Date: Sat, 9 Jul 2022 08:12:31 +0900 Subject: [PATCH] Update docs --- docs/c_functions.md | 6 +++--- docs/doxygen_footer.html | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/c_functions.md b/docs/c_functions.md index af81440..770f6cb 100644 --- a/docs/c_functions.md +++ b/docs/c_functions.md @@ -9,11 +9,11 @@ Whether you're embedding Kuroko in an application or writing an extension module #include #include -KRK_FUNC(myfunction,{ +KRK_Function(myfunction) { FUNCTION_TAKES_EXACTLY(1); CHECK_ARG(0,int,krk_integer_type,myarg); return INTEGER_VAL(myarg*myarg); -}) +} int main(int argc, char *argv[]) { krk_initVM(0); @@ -27,7 +27,7 @@ int main(int argc, char *argv[]) { This demo uses the utility macros provided in `` to easily create a function with argument checking and bind it to the builtin namespace. -`KRK_FUNC()` takes care of the function signature, function naming, and default return value of `None`. +`KRK_Function()` takes care of the function signature and function naming for exception messages. `FUNCTION_TAKES_EXACTLY()` provides simple argument count validation. `FUNCTION_TAKES_AT_LEAST()` and `FUNCTION_TAKES_AT_MOST()` are also available. diff --git a/docs/doxygen_footer.html b/docs/doxygen_footer.html index dac002d..73fb116 100644 --- a/docs/doxygen_footer.html +++ b/docs/doxygen_footer.html @@ -1,5 +1,5 @@