RFR: 8355904: Use variadic macros for J2dTrace [v6]

Alexey Ivanov aivanov at openjdk.org
Thu Jun 5 22:43:55 UTC 2025


On Thu, 22 May 2025 20:44:30 GMT, Nikita Gubarkov <ngubarkov at openjdk.org> wrote:

>> J2dTrace macros have multiple overloads specifying number of arguments, making it less convent to change number of arguments. There were cases when existing macros were not enough and people had to add new variants with even more arguments. We could simply use variadic macros instead.
>> 
>> Also, currently those macros expand to a { code block }, which doesn't require a semicolon at the end, so it can sometimes be missed, leading to an inconsistent code style. We could expand it directly to the function, forcing user to insert a semicolon after that, in a function-like style.
>
> Nikita Gubarkov has updated the pull request incrementally with one additional commit since the last revision:
> 
>   Update D3DShaderGen.c

Marked as reviewed by aivanov (Reviewer).

-------------

PR Review: https://git.openjdk.org/jdk/pull/24949#pullrequestreview-2902785474


More information about the client-libs-dev mailing list