Removing more CppCheck warnings

This commit is contained in:
Alexander Bock
2016-07-28 20:31:53 +02:00
parent 4068ec747b
commit 0c3b2c55d9
34 changed files with 214 additions and 239 deletions

View File

@@ -25,10 +25,10 @@
#ifndef __SCRIPT_HELPER_H__
#define __SCRIPT_HELPER_H__
#define SCRIPT_CHECK_ARGUMENTS(__stack__, __reqArg__, __realArg__) \
#define SCRIPT_CHECK_ARGUMENTS(__category__, __stack__, __reqArg__, __realArg__) \
if (__realArg__ != __reqArg__) { \
LERROR(ghoul::lua::errorLocation(__stack__) << "Expected " << __reqArg__ << \
" arguments, got " << __realArg__); \
LERRORC(__category__, ghoul::lua::errorLocation(__stack__) << "Expected " << \
__reqArg__ << " arguments, got " << __realArg__); \
return 0; \
}