Skip to content

Replace MSVC __debugbreak with cross-compiler DEBUG_BREAK macro.#1540

Open
ModMaker101 wants to merge 2 commits intoMCLCE:mainfrom
ModMaker101:feat/msvc-debug-macros
Open

Replace MSVC __debugbreak with cross-compiler DEBUG_BREAK macro.#1540
ModMaker101 wants to merge 2 commits intoMCLCE:mainfrom
ModMaker101:feat/msvc-debug-macros

Conversation

@ModMaker101
Copy link
Copy Markdown
Contributor

Description

Replace MSVC-specific __debugbreak() with DEBUG_BREAK() macro.

Changes

Previous Behavior

__debugbreak() was in the code.

Root Cause

Platform-specific intrinsic used.

New Behavior

DEBUG_BREAK() compiles on MSVC, GCC, and Clang with a fallback.

Fix Implementation

Created a Debug.h with a macro; with a DEBUG_BREAK() macro.

AI Use Disclosure

No.

Related Issues

@codeHusky
Copy link
Copy Markdown
Contributor

Plz pull in the PR workflow fix so your pr can build

@ModMaker101
Copy link
Copy Markdown
Contributor Author

@codeHusky Just pulled in the fix. The PR should build now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants