aboutsummaryrefslogtreecommitdiffstats
path: root/SQLiteStudio3/coreSQLiteStudio/chillout/common/common.h
blob: 85b479a61beed79a398f1582f0317a662afc7f7f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#ifndef COMMON_H
#define COMMON_H

#include <ctime>
#include <ostream>

#define CHILLOUT_DATETIME "%Y%m%d_%H%M%S"

namespace Debug {
    tm now();
#ifdef _WIN32
    std::wostream& formatDateTime(std::wostream& out, const tm& t, const wchar_t *fmt);
#else
    std::ostream& formatDateTime(std::ostream& out, const tm& t, const char* fmt);
#endif

    enum CrashDumpSize {
        CrashDumpSmall,
        CrashDumpNormal,
        CrashDumpFull
    };
}

#endif // COMMON_H