From ba14a6bd5f0a13b2d72b803cbb41187216bfdb03 Mon Sep 17 00:00:00 2001 From: Rob Loach Date: Tue, 27 Sep 2022 12:31:36 -0400 Subject: [PATCH] Fix Window::Init() to be inline --- include/Window.hpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/include/Window.hpp b/include/Window.hpp index 0628f32..0fabfe4 100644 --- a/include/Window.hpp +++ b/include/Window.hpp @@ -42,9 +42,8 @@ class Window { * Initializes the window. * * @throws raylib::RaylibException Thrown if the window failed to initiate. - * @return True or false, depending on if the Window initialized properly. */ - void Init(int width = 800, int height = 450, const std::string& title = "raylib") { + inline void Init(int width = 800, int height = 450, const std::string& title = "raylib") { ::InitWindow(width, height, title.c_str()); if (!IsWindowReady()) { throw RaylibException("Failed to create Window");