nsresult result = NS_OK;
nsresult NS_NewMsgSend(nsIMsgSend** aInstancePtrResult){	/* note this new macro for assertions...they can take a string describing the assertion */	nsresult result = NS_OK;	NS_PRECONDITION(nsnull != aInstancePtrResult, "nsnull ptr");	if (nsnull != aInstancePtrResult)	{		nsMsgSendMimeDeliveryState* pSend = new nsMsgSendMimeDeliveryState();		if (pSend)			return pSend->QueryInterface(kIMsgSend, (void**) aInstancePtrResult);		else			return NS_ERROR_OUT_OF_MEMORY; /* we couldn't allocate the object */	}	else		return NS_ERROR_NULL_POINTER; /* aInstancePtrResult was NULL....*/}