mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-06-23 05:48:48 +00:00
- fix w4 warnings
- add convenience macros for config_db(CFG_GET_SYS_VAL) - VFSUtil::EnumDirEnts now uses flags instead of bool recursive - UNUSED() for params, UNUSED2 (<- need better name) for variables - config.h defines must be tested with #if (always defined) -> allows detecting misspellings thanks to compiler warnings - replace debug_assert(0) with debug_warn (its sole purpose) - replace ScriptingHost::ValueToInt et al with ToPrimitive - use nommgr.h to disable both mmgr and VC debug heap This was SVN commit r2585.
This commit is contained in:
@@ -96,7 +96,7 @@ bool CScriptObject::Run( JSObject* Context, uintN argc, jsval* argv )
|
||||
jsval Temp;
|
||||
if( !Run( Context, &Temp, argc, argv ) )
|
||||
return( false );
|
||||
return( g_ScriptingHost.ValueToBool( Temp ) );
|
||||
return( ToPrimitive<bool>( Temp ) );
|
||||
}
|
||||
|
||||
// Treat this as an event handler and dispatch an event to it. Return !evt->m_cancelled, as a convenience.
|
||||
|
||||
Reference in New Issue
Block a user