Clarify pointer assertions

This commit is contained in:
Camilla Berglund
2016-03-02 17:58:05 +01:00
parent 5fa7e2faa4
commit de2d4c7763
5 changed files with 64 additions and 64 deletions
+2 -2
View File
@@ -262,9 +262,9 @@ GLFWAPI VkResult glfwCreateWindowSurface(VkInstance instance,
VkSurfaceKHR* surface)
{
_GLFWwindow* window = (_GLFWwindow*) handle;
assert(window);
assert(window != NULL);
assert(surface);
assert(surface != NULL);
*surface = VK_NULL_HANDLE;
_GLFW_REQUIRE_INIT_OR_RETURN(VK_ERROR_INITIALIZATION_FAILED);