Minetest  5.4.0
rollback.cpp File Reference
#include "rollback.h"
#include <fstream>
#include <list>
#include <sstream>
#include "log.h"
#include "mapnode.h"
#include "gamedef.h"
#include "nodedef.h"
#include "util/serialize.h"
#include "util/string.h"
#include "util/numeric.h"
#include "inventorymanager.h"
#include "sqlite3.h"
#include "filesys.h"
+ Include dependency graph for rollback.cpp:

Classes

class  ItemStackRow
 
struct  ActionRow
 
struct  Entity
 

Macros

#define POINTS_PER_NODE   (16.0)
 
#define SQLRES(f, good)
 
#define SQLOK(f)   SQLRES(f, SQLITE_OK)
 
#define SQLOK_ERRSTREAM(s, m)
 
#define FINALIZE_STATEMENT(statement)    SQLOK_ERRSTREAM(sqlite3_finalize(statement), "Failed to finalize " #statement)
 

Macro Definition Documentation

◆ FINALIZE_STATEMENT

#define FINALIZE_STATEMENT (   statement)     SQLOK_ERRSTREAM(sqlite3_finalize(statement), "Failed to finalize " #statement)

◆ POINTS_PER_NODE

#define POINTS_PER_NODE   (16.0)

◆ SQLOK

#define SQLOK (   f)    SQLRES(f, SQLITE_OK)

◆ SQLOK_ERRSTREAM

#define SQLOK_ERRSTREAM (   s,
 
)
Value:
if ((s) != SQLITE_OK) { \
errorstream << "RollbackManager: " << (m) << ": " \
<< sqlite3_errmsg(db) << std::endl; \
}

◆ SQLRES

#define SQLRES (   f,
  good 
)
Value:
if ((f) != (good)) {\
throw FileNotGoodException(std::string("RollbackManager: " \
"SQLite3 error (" __FILE__ ":" TOSTRING(__LINE__) \
"): ") + sqlite3_errmsg(db)); \
}
Definition: exceptions.h:50
#define TOSTRING(x)
Definition: string.h:37