/////////////////////////////////////////////////////////////////////
| 2271 | |
| 2272 | ////////////////////////////////////////////////////////////////////////// |
| 2273 | void CScriptSystem::RaiseError(const char* format, ...) |
| 2274 | { |
| 2275 | va_list arglist; |
| 2276 | char sBuf[2048]; |
| 2277 | int nCurrentLine = 0; |
| 2278 | const char* sSourceFile = "undefined"; |
| 2279 | |
| 2280 | va_start(arglist, format); |
| 2281 | cry_vsprintf(sBuf, format, arglist); |
| 2282 | va_end(arglist); |
| 2283 | |
| 2284 | ScriptWarning("[Lua Error] %s", sBuf); |
| 2285 | |
| 2286 | TraceScriptError(sSourceFile, nCurrentLine, sBuf); |
| 2287 | } |
| 2288 | |
| 2289 | ////////////////////////////////////////////////////////////////////////// |
| 2290 | void CScriptSystem::LoadScriptedSurfaceTypes(const char* sFolder, bool bReload) |
no test coverage detected