mirror of
https://github.com/glfw/glfw.git
synced 2024-11-22 13:04:35 +00:00
Finished dynamic linking test debug output.
This commit is contained in:
parent
0c122bb8ad
commit
8117f4e48d
10
tests/dynamic.c
Normal file → Executable file
10
tests/dynamic.c
Normal file → Executable file
@ -44,6 +44,13 @@ int main(void)
|
|||||||
int major, minor, rev;
|
int major, minor, rev;
|
||||||
glfwGetVersion(&major, &minor, &rev);
|
glfwGetVersion(&major, &minor, &rev);
|
||||||
|
|
||||||
|
printf("GLFW header version: %i.%i.%i\n",
|
||||||
|
GLFW_VERSION_MAJOR,
|
||||||
|
GLFW_VERSION_MINOR,
|
||||||
|
GLFW_VERSION_REVISION);
|
||||||
|
printf("GLFW library version: %i.%i.%i\n", major, minor, rev);
|
||||||
|
printf("GLFW library version string: %s\n", glfwGetVersionString());
|
||||||
|
|
||||||
if (major != GLFW_VERSION_MAJOR ||
|
if (major != GLFW_VERSION_MAJOR ||
|
||||||
minor != GLFW_VERSION_MINOR ||
|
minor != GLFW_VERSION_MINOR ||
|
||||||
rev != GLFW_VERSION_REVISION)
|
rev != GLFW_VERSION_REVISION)
|
||||||
@ -52,9 +59,6 @@ int main(void)
|
|||||||
exit(EXIT_FAILURE);
|
exit(EXIT_FAILURE);
|
||||||
}
|
}
|
||||||
|
|
||||||
printf("GLFW version: %i.%i.%i\n", major, minor, rev);
|
|
||||||
printf("GLFW version string: %s\n", glfwGetVersionString());
|
|
||||||
|
|
||||||
if (!glfwInit())
|
if (!glfwInit())
|
||||||
{
|
{
|
||||||
fprintf(stderr, "Failed to initialize GLFW\n");
|
fprintf(stderr, "Failed to initialize GLFW\n");
|
||||||
|
Loading…
Reference in New Issue
Block a user