aboutsummaryrefslogtreecommitdiff
path: root/src/database-sqlite3.h
Commit message (Collapse)AuthorAge
* Clean up database API and save the local map on an intervalShadowNinja2015-03-06
|
* Replace std::list by std::vector into ServerMap::listAllLoadableBlocks ↵Loic Blot2015-02-17
| | | | | | ServerMap::listAllLoadedBlocks and their database backends. This adds a speedup on database migration and /clearobjects command
* Add ability to delete MapBlocks from mapkwolekr2015-01-15
| | | | Also add a Lua API and chatcommand for this
* Add sqlite3 backend hack for androidsapier2014-08-16
|
* Move MapBlock (de)serializing code out of Database classsfan52014-07-12
|
* Don't unload blocks if save failedkwolekr2014-07-07
| | | | Improve error handling in saveBlock()
* Add license headers and remove useless includesKahrl2013-09-10
|
* Use STL containers instead of irr::core::listSfan52013-09-09
|
* Add dummy and LevelDB database backendsIlya Zhuravlev2013-09-09
="hl ppc">#define NORETURN __declspec(noreturn) #define FUNCTION_NAME __FUNCTION__ #else #define NORETURN __attribute__ ((__noreturn__)) #define FUNCTION_NAME __PRETTY_FUNCTION__ #endif // Whether to catch all std::exceptions. // When "catching", the program will abort with an error message. // In debug mode, leave these for the debugger and don't catch them. #ifdef NDEBUG #define CATCH_UNHANDLED_EXCEPTIONS 1 #else #define CATCH_UNHANDLED_EXCEPTIONS 0 #endif /* Abort program execution immediately */ NORETURN extern void fatal_error_fn( const char *msg, const char *file, unsigned int line, const char *function); #define FATAL_ERROR(msg) \ fatal_error_fn((msg), __FILE__, __LINE__, FUNCTION_NAME) #define FATAL_ERROR_IF(expr, msg) \ ((expr) \ ? fatal_error_fn((msg), __FILE__, __LINE__, FUNCTION_NAME) \ : (void)(0)) /* sanity_check() Equivalent to assert() but persists in Release builds (i.e. when NDEBUG is defined) */ NORETURN extern void sanity_check_fn( const char *assertion, const char *file, unsigned int line, const char *function); #define SANITY_CHECK(expr) \ ((expr) \ ? (void)(0) \ : sanity_check_fn(#expr, __FILE__, __LINE__, FUNCTION_NAME)) #define sanity_check(expr) SANITY_CHECK(expr) void debug_set_exception_handler(); /* These should be put into every thread */ #if CATCH_UNHANDLED_EXCEPTIONS == 1 #define BEGIN_DEBUG_EXCEPTION_HANDLER try { #define END_DEBUG_EXCEPTION_HANDLER \ } catch (std::exception &e) { \ errorstream << "An unhandled exception occurred: " \ << e.what() << std::endl; \ FATAL_ERROR(e.what()); \ } #else // Dummy ones #define BEGIN_DEBUG_EXCEPTION_HANDLER #define END_DEBUG_EXCEPTION_HANDLER #endif