From 12cda32850a1b961d9037099d246393721c75632 Mon Sep 17 00:00:00 2001 From: Justin Ethier Date: Tue, 2 Feb 2021 15:55:14 -0500 Subject: [PATCH] Added a note about CPS conversion and continuation arguments --- docs/C-Calling-Conventions.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/C-Calling-Conventions.md b/docs/C-Calling-Conventions.md index 289afd1f..ec6577f2 100644 --- a/docs/C-Calling-Conventions.md +++ b/docs/C-Calling-Conventions.md @@ -58,7 +58,7 @@ Where: * `data` is state data for the current thread * `argc` indicates how many arguments were sent by the caller. Generally only applicable for variadic functions. * `closure` is the caller's closure. Note this is ignored for global functions as closures are never applicable to them. - * `k` is the continuation to call into next. + * `k` is the continuation to call into next. Note this is not necessarily present; it is often placed here as a result of the compiler's CPS conversion phase. In addition zero or more objects may be listed after that as well as an ellipsis `...` for variadic functions. For example: