mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-07-25 09:33:00 +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:
@@ -530,7 +530,7 @@ JSBool JSI_IGUIObject::construct(JSContext* cx, JSObject* obj, unsigned int argc
|
||||
return JS_FALSE;
|
||||
}
|
||||
|
||||
assert(argc == 1);
|
||||
debug_assert(argc == 1);
|
||||
|
||||
// Store the IGUIObject in the JS object's 'private' area
|
||||
IGUIObject* guiObject = (IGUIObject*)JSVAL_TO_PRIVATE(argv[0]);
|
||||
@@ -542,7 +542,7 @@ JSBool JSI_IGUIObject::construct(JSContext* cx, JSObject* obj, unsigned int argc
|
||||
|
||||
JSBool JSI_IGUIObject::getByName(JSContext* cx, JSObject* UNUSEDPARAM(obj), unsigned int argc, jsval* argv, jsval* rval)
|
||||
{
|
||||
assert(argc == 1);
|
||||
debug_assert(argc == 1);
|
||||
|
||||
CStr objectName = JS_GetStringBytes(JS_ValueToString(cx, argv[0]));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user