File: common.h

package info (click to toggle)
sqlitestudio 3.4.21-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 61,476 kB
  • sloc: ansic: 406,208; cpp: 123,881; yacc: 2,692; java: 992; tcl: 497; sh: 462; xml: 426; makefile: 19
file content (24 lines) | stat: -rw-r--r-- 471 bytes parent folder | download | duplicates (2)
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