Skip to content

SDL_TriggerBreakpoint() should default to __debugbreak() on Windows platforms #13710

@whitingm-usc

Description

@whitingm-usc

#define SDL_TriggerBreakpoint() __debugbreak()

I'm in CLion using the default settings which are MinGW (gcc/g++). MinGW does implement __debugbreak(), but this configuration evaluates to __builtin_trap() instead.

The __builtin_trap() can't be stepped over in the debugger, so __debugbreak() is superior and should be preferred when available.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions