forked from ulfalizer/nesalizer
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcommon.h
More file actions
28 lines (25 loc) · 648 Bytes
/
common.h
File metadata and controls
28 lines (25 loc) · 648 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#include <cassert>
#include <cerrno>
#include <climits>
#include <cstdarg>
#include <cstddef>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#define __STDC_FORMAT_MACROS
#define __STDC_LIMIT_MACROS
#include <inttypes.h>
#include <new> // For std::nothrow
#include <unistd.h>
#include "debug.h"
#include "error.h"
#include "log.h"
#include "util.h"
// TODO: The C++ standard strictly puts identifiers from the <c*> headers in
// the std namespace. In practice they nearly always end up in the global
// namespace as well.
// using std::printf;
// using std::puts;
// using std::size_t;
// ...
extern char const *program_name; // argv[0]