added an easier format string Function

changed normal log names to be more consistent
added logging natives

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40352
This commit is contained in:
David Anderson
2007-01-25 06:19:17 +00:00
parent 68ff0eb328
commit f9a5920e5b
6 changed files with 112 additions and 5 deletions
+16
View File
@@ -69,6 +69,22 @@ namespace SourceMod
* @param ... Message format parameters.
*/
virtual void LogError(IExtension *pExt, const char *format, ...) =0;
/**
* @brief Formats a string from a native.
*
* @param buffer Buffer to store message.
* @param maxlength Maximum length of buffer (inculding null terminator).
* @param pContext Pointer to the plugin's context.
* @param params Parameter array that was passed to the native.
* @param param Parameter index where format string and variable arguments begin.
* @return Number of bytes written, not including the null terminator.
*/
virtual size_t FormatString(char *buffer,
size_t maxlength,
IPluginContext *pContext,
const cell_t *params,
unsigned int param) =0;
};
};