We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 3459

Summary: SDL_assert doesn't work in emscripten
Product: SDL Reporter: hef <hef>
Component: *don't know*Assignee: Ryan C. Gordon <icculus>
Status: RESOLVED FIXED QA Contact: Sam Lantinga <slouken>
Severity: normal    
Priority: P2 CC: hef
Version: 2.0.4   
Hardware: Other   
OS: Other   

Description hef 2016-10-17 13:02:20 UTC
SDL_assert doesn't work in emscripten.

really, SDL_assert doesn't work in platforms that have turned off thread support, because SDL_ReportAssertion() attempts to create a mutex, and if it fails, returns SDL_ASSERTION_IGNORE instead of doing something useful.
Comment 1 Ryan C. Gordon 2017-05-19 16:55:02 UTC
The lack of thread support is fixed now in https://hg.libsdl.org/SDL/rev/b00c4088f687 ...still need to make this suck less on Emscripten, though, so I'm leaving this bug open a little longer.

--ryan.
Comment 2 Ryan C. Gordon 2017-05-19 18:53:11 UTC
(In reply to Ryan C. Gordon from comment #1)
> The lack of thread support is fixed now in
> https://hg.libsdl.org/SDL/rev/b00c4088f687 ...still need to make this suck
> less on Emscripten, though, so I'm leaving this bug open a little longer.

Ok, now it's ugly but largely functions as one would expect on Emscripten, as of https://hg.libsdl.org/SDL/rev/411bf9f7f908 ...marking this bug resolved.

--ryan.