mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-07-28 01:33:38 +00:00
Support new SpiderMonkey API.
wposix: Define int8_t compatibly with SpiderMonkey. Remove unused camera, lightenv JS interfaces. Remove most of vector JS interface. Remove some of the redundant JS string conversion functions. Remove unneeded vmem, _lodBias functions. Clean up some formatting. This was SVN commit r8629.
This commit is contained in:
@@ -47,4 +47,15 @@ void AutoGCRooter::Trace(JSTracer* trc)
|
||||
{
|
||||
JS_CALL_VALUE_TRACER(trc, m_Vals[i], "AutoGCRooter val");
|
||||
}
|
||||
|
||||
for (size_t i = 0; i < m_IdArrays.size(); ++i)
|
||||
{
|
||||
for (jsint j = 0; j < m_IdArrays[i]->length; ++j)
|
||||
{
|
||||
jsval val = JSVAL_VOID;
|
||||
JS_IdToValue(m_ScriptInterface.GetContext(), m_IdArrays[i]->vector[j], &val);
|
||||
JS_CALL_VALUE_TRACER(trc, val, "AutoGCRooter id array");
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user