GLFWAPI void glfwSetClipboardString(GLFWwindow* handle, const char* string) { _GLFWwindow* window = (_GLFWwindow*) handle; assert(window != NULL); assert(string != NULL); _GLFW_REQUIRE_INIT(); _glfwPlatformSetClipboardString(window, string); }
GLFWAPI void glfwSetClipboardString(GLFWwindow handle, const char* string) { _GLFWwindow* window = (_GLFWwindow*) handle; if (!_glfwInitialized) { _glfwSetError(GLFW_NOT_INITIALIZED, NULL); return; } _glfwPlatformSetClipboardString(window, string); }