NS_ASSERTION((res >= PREF_DEFAULT_VALUE_NOT_INITIALIZED) && (res <= PREF_PROFILE_UPGRADE), "you added a new error code to prefapi.h and didn't update _convertRes");
static nsresult _convertRes(int res)//----------------------------------------------------------------------------------------{    switch (res)    {        case PREF_OUT_OF_MEMORY:            return NS_ERROR_OUT_OF_MEMORY;        case PREF_NOT_INITIALIZED:            return NS_ERROR_NOT_INITIALIZED;        case PREF_TYPE_CHANGE_ERR:        case PREF_ERROR:        case PREF_BAD_LOCKFILE:            return NS_ERROR_UNEXPECTED;        case PREF_VALUECHANGED:            return NS_PREF_VALUE_CHANGED;    }    return NS_OK;}