sourcepawn
sourcepawn copied to clipboard
docparse: double variadic
Double Variadic Declaration
Within docparse generated declarations, functions with a variadic parameter has the double occurrence of ...
Resulting in the following declaration
void PrintToChat(int client, const char[] format, any... ...)
Instead of
void PrintToChat(int client, const char[] format, any ...)
These behaviors can be observed on the web documentation: https://sm.alliedmods.net/new-api/halflife/PrintToChat as well as my Discord documentation bot: https://i.imgur.com/nH0uRJs.png
I believe the decl should not be extended: https://github.com/alliedmodders/sourcepawn/blob/7e69f7eaf58a05e89912487af646b7121e19d1a4/exp/tools/docparse/docparse.cpp#L374
Please could you split one of these out to its own issue.
The directive was split to #409