mirror of
https://github.com/gwm17/glfw.git
synced 2024-11-26 20:28:49 -05:00
9cc8fc0d0a
The cached error code cannot be made per-thread unless it required glfwInit (due to lack of __thread on OS X), which would be confusing and partially defeats the purpose of it. Beginners would use the generic error string facility instead of the error callback and then be confused by its nondescript messages. Storing the provided error code from within the error callback, whether globally or per-thread, requires just a few lines of code and hands control to the user without compromising thread safety. |
||
---|---|---|
.. | ||
accuracy.c | ||
clipboard.c | ||
CMakeLists.txt | ||
defaults.c | ||
events.c | ||
fsaa.c | ||
fsfocus.c | ||
gamma.c | ||
glfwinfo.c | ||
iconify.c | ||
joysticks.c | ||
modes.c | ||
peter.c | ||
reopen.c | ||
sharing.c | ||
tearing.c | ||
threads.c | ||
title.c | ||
windows.c |