mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-07-28 17:51:39 +00:00
rename assert2 debug_assert; use instead of all plain assert(), since there are no longer any issues (e.g. can't use while handling an exception)
This was SVN commit r2447.
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
#include "StringConvert.h"
|
||||
#include "lib/types.h"
|
||||
|
||||
#include <assert.h>
|
||||
|
||||
|
||||
#include "scripting/SpiderMonkey.h"
|
||||
|
||||
@@ -50,7 +50,7 @@ void StringConvert::jsstring_to_wstring(JSString* str, std::wstring& result)
|
||||
|
||||
void StringConvert::jschars_to_wstring(const jschar* chars, size_t len, std::wstring& result)
|
||||
{
|
||||
assert(result.empty());
|
||||
debug_assert(result.empty());
|
||||
result.resize(len);
|
||||
|
||||
for (size_t i = 0; i < len; ++i)
|
||||
@@ -60,7 +60,7 @@ void StringConvert::jschars_to_wstring(const jschar* chars, size_t len, std::wst
|
||||
|
||||
void StringConvert::ucs2le_to_wstring(const char* start, const char* end, std::wstring& result)
|
||||
{
|
||||
assert(result.empty());
|
||||
debug_assert(result.empty());
|
||||
result.resize((end-start)/2);
|
||||
|
||||
size_t i = 0;
|
||||
|
||||
Reference in New Issue
Block a user