Update dhooks.inc documentation for consistency (#1658)
* Update dhooks.inc documentation for consistency - Modifies whitespace (change tabs to spaces for non initial indents, fix alignments, create consistency with rest of SM docs) - Change `/*` to `/**` for consistency and to indicate comment doc - Removes incorrect `@noreturn` doc * Split long comments across multiple lines * Remove `@noreturn` in IGameConfigs.h * Remove `@noreturn` from IGameHelpers.h * Remove `@noreturn` from asm.c * Add `@noreturn` to ThrowError * Add `@noreturn` and `@error` to ThrowNativeError
This commit is contained in:
@@ -158,7 +158,6 @@ namespace SourceMod
|
||||
*
|
||||
* @param sectionname Section name to hook.
|
||||
* @param listener Listener callback.
|
||||
* @noreturn
|
||||
*/
|
||||
virtual void AddUserConfigHook(const char *sectionname, ITextListener_SMC *listener) =0;
|
||||
|
||||
@@ -167,7 +166,6 @@ namespace SourceMod
|
||||
*
|
||||
* @param sectionname Section name to unhook.
|
||||
* @param listener Listener callback.
|
||||
* @noreturn
|
||||
*/
|
||||
virtual void RemoveUserConfigHook(const char *sectionname, ITextListener_SMC *listener) =0;
|
||||
|
||||
|
||||
@@ -188,7 +188,6 @@ namespace SourceMod
|
||||
*
|
||||
* @param hndl CBaseHandle object.
|
||||
* @param pEnt Edict pointer.
|
||||
* @noreturn
|
||||
*/
|
||||
virtual void SetHandleEntity(CBaseHandle &hndl, edict_t *pEnt) =0;
|
||||
|
||||
|
||||
@@ -24,7 +24,6 @@
|
||||
*
|
||||
* @param dest Destination buffer where a call opcode + addr (5 bytes) has just been written.
|
||||
* @param pc The program counter value that needs to be set (usually the next address from the source).
|
||||
* @noreturn
|
||||
*/
|
||||
void check_thunks(unsigned char *dest, unsigned char *pc)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user