mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-10-09 07:39:40 +00:00
Added some support for user profiles
This was SVN commit r1270.
This commit is contained in:
@@ -71,9 +71,7 @@ template<> JSObject* ToScript<CVector3D>( CVector3D* Native )
|
||||
|
||||
template<> jsval ToJSVal<CScriptObject>( CScriptObject& Native )
|
||||
{
|
||||
if( Native.Type == CScriptObject::FUNCTION )
|
||||
return( OBJECT_TO_JSVAL( JS_GetFunctionObject( Native.Function ) ) );
|
||||
return( JSVAL_NULL );
|
||||
return( OBJECT_TO_JSVAL( Native.GetFunctionObject() ) );
|
||||
}
|
||||
|
||||
template<> bool ToPrimitive<CScriptObject>( JSContext* cx, jsval v, CScriptObject& Storage )
|
||||
|
||||
Reference in New Issue
Block a user