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:
janwas
2005-06-28 04:06:25 +00:00
parent cf37e9cbe6
commit ec6b78b252
114 changed files with 413 additions and 398 deletions
+4 -4
View File
@@ -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;
}