This is new wiki software and old wiki content. It's a work in progress!
Here's the explanation.
Be gentle, report bugs, leave feedback on pages, or just edit them yourself! Thanks!

SDL Wiki

SDL_TriggerBreakpoint

Use this function to trigger a breakpoint during debugging.

Syntax

void SDL_TriggerBreakpoint(void)

Remarks

If the program is running under a debugger this function will trigger a breakpoint. It is typically used temporarily during debugging or with other error handling. Note that if a debugger isn't running, on some platforms this can terminate your application.

This isn't actually a function, but rather a macro. The intention is that the debugger will stop on exactly this line of code instead of somewhere inside the SDL library. As such, the assertion facility uses this so that the debugger stops on the exact line of code where an SDL_assert failed.


CategoryAPI, CategoryAssertions


[ edit | delete | history | feedback | raw ]

[ front page | index | search | recent changes | git repo | offline html ]

All wiki content is licensed under Creative Commons Attribution 4.0 International (CC BY 4.0).
Wiki powered by ghwikipp.