diff --git a/core/interfaces/IForwardSys.h b/core/interfaces/IForwardSys.h index 789b3fc7..e815aee4 100644 --- a/core/interfaces/IForwardSys.h +++ b/core/interfaces/IForwardSys.h @@ -133,7 +133,7 @@ namespace SourceMod * @brief Pushes an array of cells onto the current call. Different rules than ICallable. * NOTE: On Execute, the pointer passed will be modified according to the copyback rule. * - * @param array Array to copy. Cannot be NULL, unlike ICallable's version. + * @param inarray Array to copy. Cannot be NULL, unlike ICallable's version. * @param cells Number of cells to allocate and optionally read from the input array. * @param phys_addr Unused. If a value is passed, it will be filled with NULL. * @param flags Whether or not changes should be copied back to the input array. diff --git a/core/interfaces/IPluginFunction.h b/core/interfaces/IPluginFunction.h index d75ccc27..320d54c2 100644 --- a/core/interfaces/IPluginFunction.h +++ b/core/interfaces/IPluginFunction.h @@ -63,7 +63,7 @@ namespace SourceMod * This means you cannot push a pointer, change it, and push it again and expect * two different values to come out. * - * @param array Array to copy, NULL if no initial array should be copied. + * @param inarray Array to copy, NULL if no initial array should be copied. * @param cells Number of cells to allocate and optionally read from the input array. * @param phys_addr Optional return address for physical array, if one was made. * @param flags Whether or not changes should be copied back to the input array. @@ -111,7 +111,6 @@ namespace SourceMod * @brief Executes the forward, resets the pushed parameter list, and performs any copybacks. * * @param result Pointer to store return value in. - * @param reader Copy-back listener. NULL to specify * @return Error code, if any. */ virtual int Execute(cell_t *result) =0; diff --git a/core/interfaces/IPluginSys.h b/core/interfaces/IPluginSys.h index 07001bcf..9e0a86a3 100644 --- a/core/interfaces/IPluginSys.h +++ b/core/interfaces/IPluginSys.h @@ -230,7 +230,7 @@ namespace SourceMod * * @param path Path and filename of plugin, relative to plugins folder. * @param debug Whether or not to default the plugin into debug mode. - * @param lifetime Lifetime of the plugin. + * @param type Lifetime of the plugin. * @param error Buffer to hold any error message. * @param err_max Maximum length of error message buffer. * @return A new plugin pointer on success, false otherwise. @@ -244,7 +244,7 @@ namespace SourceMod /** * @brief Attempts to unload a plugin. * - * @param Pointer to the plugin handle. + * @param plugin Pointer to the plugin handle. * @return True on success, false otherwise. */ virtual bool UnloadPlugin(IPlugin *plugin) =0; @@ -253,7 +253,7 @@ namespace SourceMod * @brief Finds a plugin by its context. * Note: This function should be considered O(1). * - * @param Pointer to an sp_context_t. + * @param ctx Pointer to an sp_context_t. * @return Pointer to a matching IPlugin, or NULL if none found. */ virtual IPlugin *FindPluginByContext(const sp_context_t *ctx) =0; diff --git a/core/systems/CFunction.cpp b/core/systems/CFunction.cpp index 66e487cd..e032f8ba 100644 --- a/core/systems/CFunction.cpp +++ b/core/systems/CFunction.cpp @@ -72,24 +72,6 @@ int CFunction::PushFloatByRef(float *number, int flags) return PushCellByRef((cell_t *)number, flags); } -int CFunction::PushCells(cell_t array[], unsigned int numcells, bool each) -{ - if (!each) - { - return PushArray(array, numcells, NULL, 0); - } else { - int err; - for (unsigned int i=0; i= SP_MAX_EXEC_PARAMS) diff --git a/core/systems/CFunction.h b/core/systems/CFunction.h index 58fb0f40..0deca0de 100644 --- a/core/systems/CFunction.h +++ b/core/systems/CFunction.h @@ -25,7 +25,6 @@ public: virtual int PushCellByRef(cell_t *cell, int flags); virtual int PushFloat(float number); virtual int PushFloatByRef(float *number, int flags); - virtual int PushCells(cell_t array[], unsigned int numcells, bool each); virtual int PushArray(cell_t *inarray, unsigned int cells, cell_t **phys_addr, int copyback); virtual int PushString(const char *string); virtual int PushStringEx(char *string, int flags);