mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-07-23 12:54:11 +00:00
#SwEng
fpclassify fix EntityManager: rename getExtant -> GetExtantAsHandles, fix its implementation+call site to avoid dynamic alloc/auto ptr, rename extant -> IsExtant vsnprintf2 -> sys_vsnprintf. remove printf.h (function is declared in sysdep header) use SUS/posix-ish strcasecmp instead of defining that to the windows-only stricmp add cppdoc for ia32/cpu This was SVN commit r5011.
This commit is contained in:
@@ -1508,11 +1508,11 @@ JSFunctionSpec ScriptFunctionTable[] =
|
||||
|
||||
JSBool GetEntitySet( JSContext* UNUSED(cx), JSObject* UNUSED(obj), jsval UNUSED(argv), jsval* vp )
|
||||
{
|
||||
std::auto_ptr<std::vector<HEntity> > extant (g_EntityManager.getExtant());
|
||||
std::vector<HEntity> extant;
|
||||
g_EntityManager.GetExtantAsHandles(extant);
|
||||
*vp = OBJECT_TO_JSVAL(EntityCollection::Create(extant));
|
||||
|
||||
*vp = OBJECT_TO_JSVAL( EntityCollection::Create( *extant ) );
|
||||
|
||||
return( JS_TRUE );
|
||||
return JS_TRUE;
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user