Back to index

lightning-sunbird  0.9+nobinonly
Classes | Defines
xpctest_echo.cpp File Reference
#include "xpctest_private.h"

Go to the source code of this file.

Classes

class  xpctestEcho

Defines

#define GET_CALL_CONTEXT

Define Documentation

Value:
nsresult rv; \
  nsCOMPtr<nsIXPCNativeCallContext> cc; \
  nsCOMPtr<nsIXPConnect> xpc(do_GetService(nsIXPConnect::GetCID(), &rv)); \
  if(NS_SUCCEEDED(rv)) \
    rv = xpc->GetCurrentNativeCallContext(getter_AddRefs(cc)) /* no ';' */

Definition at line 433 of file xpctest_echo.cpp.