Skip to content

SDL_TriggerBreakpoint on Android is incorrect #13972

@madebr

Description

@madebr

#elif defined(ANDROID) || defined(__SYMBIAN32__)
#include <assert.h>
#define SDL_TriggerBreakpoint() assert(0)

The assert macro is disabled when building with -DNDEBUG, so SDL_TriggerBreakpoint might inadvertently become a no-op.

The Android case was added by @VladSerhiienko in 47deebe (#7202)
The Symbian case was added by @mupfdev in 7ae6459

I propose to remove this case, or if no replacement can be found, add a && !defined(NDEBUG) to the conditional

I suppose the N-Gage ARM processor has some builtin and/or assembly operation to replace this with?

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions