diff options
author | dshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573> | 2007-07-08 20:59:26 +0000 |
---|---|---|
committer | dshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573> | 2007-07-08 20:59:26 +0000 |
commit | ccd8ab9d731d18d9fa3d6c29ed6bb9c8ab220c5d (patch) | |
tree | 50445a3689cc911f1d28ea535a2a5a049b314e71 /crawl-ref/source/debug.h | |
parent | eb6bb5f5ee6d07cdfb1b3239b155e8b252e98ae6 (diff) | |
download | crawl-ref-ccd8ab9d731d18d9fa3d6c29ed6bb9c8ab220c5d.tar.gz crawl-ref-ccd8ab9d731d18d9fa3d6c29ed6bb9c8ab220c5d.zip |
Added debugging code to generate multiple dungeons (all branches and levels)
and gather statistics on maps used and Lua errors encountered.
To use it, run "crawl -mapstat" with a full-debug build. Output will be
mapgen.log in the current directory.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1805 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/debug.h')
-rw-r--r-- | crawl-ref/source/debug.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/crawl-ref/source/debug.h b/crawl-ref/source/debug.h index 3e647052df..fe9efa0340 100644 --- a/crawl-ref/source/debug.h +++ b/crawl-ref/source/debug.h @@ -152,4 +152,12 @@ void debug_set_stats( void ); void debug_card(); +#ifdef DEBUG_DIAGNOSTICS +void generate_map_stats(); +class map_def; +void mapgen_report_map_try(const map_def &map); +void mapgen_report_map_use(const map_def &map); +void mapgen_report_error(const map_def &map, const std::string &err); +#endif + #endif |