Browse Source

deprecate love.window.close.

Sasha Szpakowski 1 year ago
parent
commit
ec177d51d1
1 changed files with 1 additions and 0 deletions
  1. 1 0
      src/modules/window/wrap_Window.cpp

+ 1 - 0
src/modules/window/wrap_Window.cpp

@@ -348,6 +348,7 @@ int w_isOpen(lua_State *L)
 
 
 int w_close(lua_State *L)
 int w_close(lua_State *L)
 {
 {
+	luax_markdeprecated(L, 1, "love.window.close", API_FUNCTION, DEPRECATED_NO_REPLACEMENT, nullptr);
 	luax_catchexcept(L, [&]() { instance()->close(); });
 	luax_catchexcept(L, [&]() { instance()->close(); });
 	return 0;
 	return 0;
 }
 }