microsoft / microsoft/wil

THROW_WIN32_IF_MSG / THROW_WIN32_IF_MSG doesn't exist.

Open
#377 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

feature-request
Dominant language
C++
Stars
3k
Forks
300
Avg merge
19h 12m
Merged PRs (30d)
1

Description

THROW_WIN32_MSG() exists, but not THROW_WIN32_IF_MSG to avoid someone needing to write:

THROW_HR_IF_MSG(HRESULT_FROM_WIN32(ERROR_NOT_FOUND), (count !=1), "something")

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the definitions of THROW_WIN32_MSG and THROW_HR_IF_MSG, then compare their conditional and message-handling patterns. Add the requested THROW_WIN32_IF_MSG equivalent so callers can express the shown condition directly, and verify that the macro matches the existing Win32 error behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
operating-systems
Issue type
Feature
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.