audit all asserts
commit007b965b11b681550ee2e2244a2f53e64e88697d
authorKartik K. Agaram <vc@akkartik.com>
Sat, 18 Nov 2023 19:30:57 +0000 (18 11:30 -0800)
committerKartik K. Agaram <vc@akkartik.com>
Sat, 18 Nov 2023 19:32:01 +0000 (18 11:32 -0800)
treee3bff0e0d71e896ea1d954ae7715f672b247bf0e
parent5cce5115507800eeca7ba9c271e07c23473228f4
audit all asserts

Each one should provide a message that will show up within LÖVE. Stop
relying on nearby prints to the terminal.

I also found some unnecessary ones.

There is some potential here for performance regressions: the format()
calls will trigger whether or not the assertion fails, and cause
allocations. So far Lua's GC seems good enough to manage the load even
with Moby Dick, even in some situations that caused issues in the past
like undo.
15 files changed:
commands.lua
drawing.lua
edit.lua
file.lua
geom.lua
log_browser.lua
search.lua
select.lua
source_edit.lua
source_file.lua
source_select.lua
source_text.lua
source_undo.lua
text.lua
undo.lua