nsXPCWrappedNative::GetDynamicScriptable(nsIXPCScriptable** p) { NS_PRECONDITION(p, "bad param"); nsIXPCScriptable* s = GetDynamicScriptable(); if(s) { NS_ADDREF(s); *p = s; return NS_OK; }  *p = NULL; return NS_ERROR_NO_INTERFACE; }
nsIXPCScriptable* GetDynamicScriptable() const {return mRoot->mDynamicScriptable;}
nsXPCWrappedNative::GetDynamicScriptable(nsIXPCScriptable** p){    NS_PRECONDITION(p, "bad param");    nsIXPCScriptable* s = GetDynamicScriptable();    if(s)    {        NS_ADDREF(s);        *p = s;        return NS_OK;    }    // else...    *p = NULL;    return NS_ERROR_NO_INTERFACE;}