NS_ENSURE_ARG_POINTER(_retval);
NS_ASSERTION(_retval, "_retval is NULL!"); *_retval = 0;
nsCategoryManager::EnumerateCategories(nsISimpleEnumerator **_retval){  NS_ENSURE_ARG_POINTER(_retval);  PR_Lock(mLock);  CategoryEnumerator* enumObj = CategoryEnumerator::Create(mTable);  PR_Unlock(mLock);  if (!enumObj)    return NS_ERROR_OUT_OF_MEMORY;  *_retval = enumObj;  NS_ADDREF(*_retval);  return NS_OK;}