From 489e475bd28d260ccf20e71a83818d8b0d52b5dc Mon Sep 17 00:00:00 2001 From: carterza Date: Thu, 16 Sep 2021 22:40:26 -0500 Subject: [PATCH] glfwGetError should accept a pointer to a cstring instead of a cstringarray --- src/glfw.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/glfw.nim b/src/glfw.nim index 9bf8c18..e55c74f 100644 --- a/src/glfw.nim +++ b/src/glfw.nim @@ -1668,7 +1668,7 @@ proc glfwGetVersionString*(): cstring {.importc: "glfwGetVersionString".} ## @since Added in version 3.0. ## ## @ingroup init -proc glfwGetError*(description: cstringArray): int32 {.importc: "glfwGetError".} +proc glfwGetError*(description: ptr cstring): int32 {.importc: "glfwGetError".} ## @brief Returns and clears the last error for the calling thread. ## ## This function returns and clears the error code of the last