{{newin|[[0.7.0]]|070|type=callback}}
Callback function triggered when the game is closed.
== Function ==
=== Synopsis ===
<source lang="lua">
r = love.quit( )
</source>
=== Arguments ===
None.
=== Returns ===
{{param|boolean|r|Abort quitting. If true, do not close the game.}}
== Example ==
This example shows how the return value of [[love.quit]] can be used to stop the closing of the game. 
<source lang="lua">
local quit = true
function love.quit()
    if quit then
        print("We are not ready to quit yet!")
        quit = not quit
    else
        print("Thanks for playing. Please play again soon!")
        return quit
    end
    return true
end
</source>

== See Also ==
* [[parent::love]]
* [[love.event.quit]]
[[Category:Callbacks]]
{{#set:Description=Callback function triggered when the game is closed.}}
{{#set:Subcategory=General}}
== Other Languages ==
{{i18n|love.quit}}