67797: add Components.isSuccessCode (r=jag, sr=jband)

This commit is contained in:
shaver%mozilla.org 2001-03-19 21:34:05 +00:00
Родитель af55fd8718
Коммит 40f315f196
2 изменённых файлов: 8 добавлений и 0 удалений

Просмотреть файл

@ -130,6 +130,7 @@ interface nsIXPCComponents : nsISupports
readonly attribute nsIXPCComponents_Exception Exception; readonly attribute nsIXPCComponents_Exception Exception;
readonly attribute nsIXPCComponents_Constructor Constructor; readonly attribute nsIXPCComponents_Constructor Constructor;
boolean isSuccessCode(in nsresult result);
/* 'lastResult' is accessable via JavaScript only */ /* 'lastResult' is accessable via JavaScript only */
/* 'returnCode' is accessable via JavaScript only */ /* 'returnCode' is accessable via JavaScript only */
}; };

Просмотреть файл

@ -1919,6 +1919,13 @@ XPC_IMPL_GET_OBJ_METHOD(Constructor);
#undef XPC_IMPL_GET_OBJ_METHOD #undef XPC_IMPL_GET_OBJ_METHOD
/*******************************************/ /*******************************************/
NS_IMETHODIMP
nsXPCComponents::IsSuccessCode(nsresult result, PRBool *out)
{
*out = NS_SUCCEEDED(result);
return NS_OK;
}
NS_IMETHODIMP NS_IMETHODIMP
nsXPCComponents::GetStack(nsIJSStackFrameLocation * *aStack) nsXPCComponents::GetStack(nsIJSStackFrameLocation * *aStack)
{ {