Merge pull request #294 from alliedmodders/explicit-ret-types

Add explicit return types to forwards missing them (r=dvander).
This commit is contained in:
Nicholas Hastings 2015-03-06 15:19:37 -05:00
commit d72a9150a1
4 changed files with 9 additions and 17 deletions

View File

@ -63,17 +63,15 @@
* the Handle or add categories. * the Handle or add categories.
* *
* @param topmenu Handle to the admin menu's TopMenu. * @param topmenu Handle to the admin menu's TopMenu.
* @noreturn
*/ */
forward OnAdminMenuCreated(Handle topmenu); forward void OnAdminMenuCreated(Handle topmenu);
/** /**
* Called when the admin menu is ready to have items added. * Called when the admin menu is ready to have items added.
* *
* @param topmenu Handle to the admin menu's TopMenu. * @param topmenu Handle to the admin menu's TopMenu.
* @noreturn
*/ */
forward OnAdminMenuReady(Handle topmenu); forward void OnAdminMenuReady(Handle topmenu);
/** /**
* Retrieves the Handle to the admin top menu. * Retrieves the Handle to the admin top menu.

View File

@ -41,7 +41,7 @@
* @param client Client index * @param client Client index
* @param muteState True if client was muted, false otherwise * @param muteState True if client was muted, false otherwise
*/ */
forward BaseComm_OnClientMute(client, bool:muteState); forward void BaseComm_OnClientMute(client, bool:muteState);
/** /**
* Called when a client is gagged or ungagged * Called when a client is gagged or ungagged
@ -49,7 +49,7 @@
* @param client Client index * @param client Client index
* @param gagState True if client was gaged, false otherwise * @param gagState True if client was gaged, false otherwise
*/ */
forward BaseComm_OnClientGag(client, bool:gagState); forward void BaseComm_OnClientGag(client, bool:gagState);
/** /**
* Returns whether or not a client is gagged * Returns whether or not a client is gagged

View File

@ -156,7 +156,7 @@ native bool:AreClientCookiesCached(client);
* *
* @param client Client index. * @param client Client index.
*/ */
forward OnClientCookiesCached(client); forward void OnClientCookiesCached(client);
/** /**
* Cookie Menu Callback prototype * Cookie Menu Callback prototype

View File

@ -399,32 +399,26 @@ native TF2_RemoveWearable(client, wearable);
* *
* @param client Index of the client to which the conditon is being added. * @param client Index of the client to which the conditon is being added.
* @param condition Condition that is being added. * @param condition Condition that is being added.
* @noreturn
*/ */
forward TF2_OnConditionAdded(client, TFCond:condition); forward void TF2_OnConditionAdded(client, TFCond:condition);
/** /**
* Called after a condition is removed from a player * Called after a condition is removed from a player
* *
* @param client Index of the client to which the condition is being removed. * @param client Index of the client to which the condition is being removed.
* @param condition Condition that is being removed. * @param condition Condition that is being removed.
* @noreturn
*/ */
forward TF2_OnConditionRemoved(client, TFCond:condition); forward void TF2_OnConditionRemoved(client, TFCond:condition);
/** /**
* Called when the server enters the Waiting for Players round state * Called when the server enters the Waiting for Players round state
*
* @noreturn
*/ */
forward TF2_OnWaitingForPlayersStart(); forward void TF2_OnWaitingForPlayersStart();
/** /**
* Called when the server exits the Waiting for Players round state * Called when the server exits the Waiting for Players round state
*
* @noreturn
*/ */
forward TF2_OnWaitingForPlayersEnd(); forward void TF2_OnWaitingForPlayersEnd();
/** /**
* Called when a player attempts to use a teleporter to decide if the player should be allowed to teleport. * Called when a player attempts to use a teleporter to decide if the player should be allowed to teleport.