sourcepawn icon indicating copy to clipboard operation
sourcepawn copied to clipboard

docparse: double variadic

Open rumblefrog opened this issue 6 years ago • 2 comments

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

rumblefrog avatar Nov 05 '19 07:11 rumblefrog

Please could you split one of these out to its own issue.

asherkin avatar Nov 05 '19 10:11 asherkin

The directive was split to #409

rumblefrog avatar Nov 05 '19 15:11 rumblefrog