mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-10-14 06:58:07 +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:
@@ -18,12 +18,12 @@ namespace JSI_LookedupWord {
|
||||
static JSBool GetProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp)
|
||||
{
|
||||
CLocale::LookupType* lookedup = (CLocale::LookupType*)JS_GetPrivate(cx, obj);
|
||||
assert(lookedup);
|
||||
debug_assert(lookedup);
|
||||
|
||||
JSObject* parent = JS_GetParent(cx, obj);
|
||||
assert(parent);
|
||||
debug_assert(parent);
|
||||
CLocale* locale = (CLocale*)JS_GetPrivate(cx, parent);
|
||||
assert(locale);
|
||||
debug_assert(locale);
|
||||
|
||||
JSString* prop = JS_ValueToString(cx, id);
|
||||
JS_ASSERT(prop, "lookup() property failed to convert to string");
|
||||
@@ -50,7 +50,7 @@ namespace JSI_LookedupWord {
|
||||
// Free the LookupType that was allocated when building this object
|
||||
|
||||
CLocale::LookupType* lookedup = (CLocale::LookupType*)JS_GetPrivate(cx, obj);
|
||||
assert(lookedup);
|
||||
debug_assert(lookedup);
|
||||
delete lookedup;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user