Merge pull request #340 from MihailRis/warnings

Warnings
This commit is contained in:
MihailRis 2024-11-02 13:30:11 +03:00 • committed by GitHub
commit 316de42cca
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 22 additions and 0 deletions

View file

@ -238,6 +238,7 @@ function on_deprecated_call(name, alternatives)
return
end
__warnings_hidden[name] = true
events.emit("core:warning", "deprecated call", name)
if alternatives then
debug.warning("deprecated function called ("..name.."), use "..
alternatives.." instead\n"..debug.traceback())