Add the ability to have formally deprecated functions.

Functions which are deprecated will print out a message and show up in a small dialog on-screen, when they're first called. Deprecation output is disabled in fused mode by default, and can be modified with love.setDeprecationOutput(enable).

--HG--
branch : minor
This commit is contained in:
Alex Szpakowski
2017-08-27 13:46:31 -03:00
parent 324ef8f690
commit de28c6e6a8
16 changed files with 542 additions and 10 deletions
+2
View File
@@ -899,6 +899,8 @@ void Graphics::present(void *screenshotCallbackData)
if (isCanvasActive())
throw love::Exception("present cannot be called while a Canvas is active.");
deprecations.draw(this);
flushStreamDraws();
endPass();