Home - Waterfall Grid T-Grid Console Builders Recent Builds Buildslaves Changesources - JSON API - About

Change #5527

Category None
Changed by Ivan Zaitsev <magnat2645ohnoyoudont@gmail.com>
Changed at Mon 18 Dec 2023 15:57:58
Repository https://github.com/alliedmodders/sourcemod
Project alliedmodders/sourcemod
Branch master
Revision ab6b45b81cfcaa8034d9ee90af1beb9aff6527d0

Comments

Add void function prototypes to NativeCall and MenuHandler (#2081)

* Add void prototype to NativeCall typeset

`void` prototype can be used for simple natives which don't return any value.
This is done to silence compiler warnings 209 (`function has explicit 'int' tag but does not return a value`) and 242 (`function "NativeCallback" should return an explicit value`).

* Make MenuHandler into typeset and add void prototype

This can be used for basic menu handlers that don't return modified item styles and don't redraw menu items.

Changed files