Luanti 5.16.0-dev
Loading...
Searching...
No Matches
rollback.cpp File Reference
#include "rollback.h"
#include "exceptions.h"
#include <list>
#include "log.h"
#include "gamedef.h"
#include "nodedef.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.0f)
#define SQLRES(f, good)
#define SQLOK(f)
#define SQLOK_ERRSTREAM(s, m)
#define FINALIZE_STATEMENT(statement)

Macro Definition Documentation

◆ FINALIZE_STATEMENT

#define FINALIZE_STATEMENT ( statement)
Value:
SQLOK_ERRSTREAM(sqlite3_finalize(statement), "Failed to finalize " #statement)
#define SQLOK_ERRSTREAM(s, m)
Definition database-sqlite3.cpp:35

◆ POINTS_PER_NODE

#define POINTS_PER_NODE   (16.0f)

◆ SQLOK

#define SQLOK ( f)
Value:
SQLRES(f, SQLITE_OK)
#define SQLRES(s, r, m)
Definition database-sqlite3.cpp:28

◆ SQLOK_ERRSTREAM

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

◆ 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:41
#define TOSTRING(x)
Definition string.h:28