mirror of
https://github.com/love2d/love.git
synced 2026-08-17 11:00:31 +02:00
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:
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user