Skip to content

Commit 1885aa9

Browse files
committed
Updated code style for feac16b
1 parent feac16b commit 1885aa9

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/xrScriptEngine/script_engine.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -505,9 +505,9 @@ struct raii_guard : private Noncopyable
505505
{
506506
CScriptEngine* scriptEngine;
507507
int m_error_code;
508-
LPCSTR const& m_error_description;
508+
const char*& m_error_description;
509509

510-
raii_guard(CScriptEngine* scriptEngine, int error_code, LPCSTR const& error_description)
510+
raii_guard(CScriptEngine* scriptEngine, int error_code, const char*& error_description)
511511
:m_error_code(error_code), m_error_description(error_description)
512512
{
513513
this->scriptEngine = scriptEngine;
@@ -525,7 +525,7 @@ struct raii_guard : private Noncopyable
525525
#else
526526
static const bool break_on_assert = true; // xxx: there is no point to set it true\false in Release, since game will crash anyway in most cases due to XRAY_EXCEPTIONS disabled in Release build.
527527
#endif
528-
if (!m_error_code) return; // xxx: Check "lua_pcall_failed" before changing this!
528+
if (!m_error_code) return; // Check "lua_pcall_failed" before changing this!
529529
if (break_on_assert)
530530
R_ASSERT2(!m_error_code, m_error_description);
531531
else
@@ -754,9 +754,9 @@ void CScriptEngine::lua_error(lua_State* L)
754754
int CScriptEngine::lua_pcall_failed(lua_State* L)
755755
{
756756
#if (!defined(DEBUG) && !XRAY_EXCEPTIONS)
757-
print_output(L, "", 0); // xxx: Force game to not break in raii_guard() for this type of errors
757+
print_output(L, "", 0); // Force game to not break in raii_guard() for this type of errors
758758
#else
759-
print_output(L, "", LUA_ERRRUN); // xxx: Default behavior
759+
print_output(L, "", LUA_ERRRUN); // Default behavior
760760
#endif
761761

762762
on_error(L);

0 commit comments

Comments
 (0)