[php-src] PR #18667: Generated arginfo headers: combine preprocessor conditional blocks (2)
| From: | DanielEScherzer | Date: | Mon, 26 May 2025 19:57:36 +0000 |
| Subject: | [php-src] PR #18667: Generated arginfo headers: combine preprocessor conditional blocks (2) | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-31819@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/18667
Author: DanielEScherzer
When global constants' or class constants' availability is based on some preprocessor
condition, the generated arginfo header files wrap the declarations in the preprocessor
#if conditional blocks, one per declaration, even if they are in the same conditional
block based on comments in the stub file. Instead of having multiple conditional blocks one after
the other with the same condition, combine them into a single conditional block.