Added basic error reporting to shared code.

This commit is contained in:
Camilla Berglund
2010-09-09 21:34:42 +02:00
parent 2c091571d8
commit 922cd1011a
7 changed files with 222 additions and 16 deletions
+6
View File
@@ -184,7 +184,10 @@ static void disableKeyRepeat(_GLFWwindow* window)
GLFWAPI void glfwEnable(GLFWwindow window, int token)
{
if (!_glfwInitialized)
{
_glfwSetError(GLFW_NOT_INITIALIZED);
return;
}
switch (token)
{
@@ -216,7 +219,10 @@ GLFWAPI void glfwEnable(GLFWwindow window, int token)
GLFWAPI void glfwDisable(GLFWwindow window, int token)
{
if (!_glfwInitialized)
{
_glfwSetError(GLFW_NOT_INITIALIZED);
return;
}
switch (token)
{