Commit Graph

8 Commits (jgrpp)

Author SHA1 Message Date
Jonathan G Rennison 60dabc68a0 Add a scope info logger for DoSetViewportPosition calls 4 years ago
Jonathan G Rennison cbdd9f84d8 Merge branch 'master' into jgrpp
# Conflicts:
#	src/console_gui.cpp
#	src/lang/korean.txt
#	src/video/sdl2_v.cpp
#	src/video/sdl2_v.h
#	src/window.cpp
#	src/window_gui.h
5 years ago
Jonathan G Rennison c82c1aa271 Bump scope_dumper buffer size to 512 bytes 5 years ago
Jonathan G Rennison 8805ab8387 Add tile info dump method to scope_dumper 6 years ago
Jonathan G Rennison e2a4e51725 Enable use of scope_dumper without scope info logging enabled 6 years ago
Jonathan G Rennison faf4cdc0f4 Scope info: Add station/waypoint info dumper 6 years ago
Jonathan G Rennison 0062881a46 Avoid using malloc in scope guard logger.
Use a temporary object with its own buffer, which lives on the stack.

Reformat SCOPE_INFO_FMT to not be all on one line.
Other minor reformatting.
8 years ago
Jonathan G Rennison 5cf2b04f6a Initial implementation of scope guard logging for including in crash logs.
This adds a mechanism to create scope guards with an associated std::function
which is called to output diagnostic info in the event of a crash.
Add a macro to make it easy to efficiently capture variables on the stack
and output a formatted message.
Requires C++11, #ifdefed out for legacy compilers.
8 years ago