| Summary: | SDL_LogSetOutputFunction(...) should revert to default output function | ||
|---|---|---|---|
| Product: | SDL | Reporter: | george.oros |
| Component: | *don't know* | Assignee: | Sam Lantinga <slouken> |
| Status: | ASSIGNED --- | QA Contact: | Sam Lantinga <slouken> |
| Severity: | enhancement | ||
| Priority: | P2 | ||
| Version: | 2.0.5 | ||
| Hardware: | All | ||
| OS: | All | ||
|
Description
george.oros
2017-06-09 07:17:44 UTC
In case of forgetting to do first a Get before setting the custom function. Right now, callback==NULL doesn't crash when logging, it effectively turns logging off, which could also be desirable. I don't think we specifically documented that effect, though, so we _could_ change this. Another alternative is to add a SDL_LogGetDefaultOutputFunction() API. Sam, do you have a preference on this? --ryan. Would be nice to have a consistent approach for all callback function (e.g. SDL_HitTest, and others I don't know of). Many thanks! |