MDN may have intermittent access issues April 18 13:00 - April 19 01:00 UTC. See whistlepig.mozilla.org for all notifications.

mozilla
Your Search Results

    NS_ADDREF

    この記事はまだ日本語に翻訳されていません。MDN の翻訳はボランティアによって行われています。是非 MDN に登録し、私たちの力になって下さい。

    Summary

    Macro

    Addrefs the argument. Do not use when the pointer might be null; use NS_IF_ADDREF in those cases.

    NS_ADDREF(foo) is equivalent to

    foo->AddRef();
    

    This macro exists mainly for historical reasons, but for consistency and for symmetry with NS_RELEASE it should still be used.

    Syntax

    NS_ADDREF(foo);
    

    See Also

    NS_IF_ADDREF NS_RELEASE

    ドキュメントのタグと貢献者

    タグ: 
    Contributors to this page: Biesi, Nickolay
    最終更新者: Nickolay,