Mozilla.com

  1. MDC
  2. Main Page
  3. NS_IF_ADDREF
Table of contents
  1. 1. Summary
  2. 2. Syntax
  3. 3. See Also

NS_IF_ADDREF

Table of contents
  1. 1. Summary
  2. 2. Syntax
  3. 3. See Also

This page still needs some work, help to improve it!

Summary

Macro

Addrefs the argument, if it is non-null. Does nothing for a null pointer. Only use this macro if the pointer might be NULL; use NS_ADDREF otherwise.

NS_IF_ADDREF(foo) is equal to

if (foo)
  foo->AddRef();

Syntax

NS_IF_ADDREF(foo);

See Also

NS_ADDREF

Page last modified 01:36, 12 Mar 2006 by Nickolay

Files (0)