1
0
Fork 0
forked from fun/fun

Added documentation to kcgi opcodes as Doxygen compatible comments. No code changes. (0.41.10)

This commit is contained in:
Johannes Findeisen 2026-05-10 00:01:06 +02:00
commit fdaed27527
4 changed files with 110 additions and 0 deletions

View file

@ -1,3 +1,26 @@
/*
* This file is part of the Fun programming language.
* https://fun-lang.xyz/
*
* Copyright 2025 Johannes Findeisen <you@hanez.org>
* Licensed under the terms of the Apache-2.0 license.
* https://opensource.org/license/apache-2-0
*/
/**
* @file end.c
* @brief VM opcode snippet to finalize kcgi handling and release state.
*
* This snippet is included by vm.c and implements the OP_KCGI_END
* instruction. When FUN_WITH_KCGI is enabled, it releases any currently
* stored request (g_kcgi_req) and pushes 1, indicating success. When kcgi
* support is disabled, it simply pushes 0.
*
* Stack effect:
* - Pops: (none)
* - Pushes: int 1 when FUN_WITH_KCGI, otherwise int 0
*/
/* KCGI_END */
case OP_KCGI_END: {
#ifdef FUN_WITH_KCGI