-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhelper.hpp
More file actions
23 lines (20 loc) · 885 Bytes
/
Copy pathhelper.hpp
File metadata and controls
23 lines (20 loc) · 885 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#pragma once
#include <cstdint>
#include <vector>
#define outchar(data) dec << static_cast<uint16_t>(data) << 'x' << hex << uppercase << static_cast<uint16_t>(data) << dec
#define outhex(data) 'x' << hex << uppercase << data << dec
#define outvar(data) dec << data << 'x' << hex << uppercase << data << dec
#define outtime(time) time << hex << 'x' << uint64_t(time) << dec
#define outpair(first, second) dec << first << '/' << second
#define outpaix(first, second) hex << uppercase << 'x' << first << "/x" << second << dec
#define outwrite(os, var) os.write((char*)&var, sizeof(var)); os
#define tab '\t'
#define enter '\n'
#define clean "\033[2K\r"
#define bold_on "\e[1m"
#define bold_off "\e[0m"
bool ldump(const void*, uint, uint = 0);
bool pdump(const void*, const void*);
bool dump(const std::vector<char>&);
void confirm(bool cond = false);
std::string& lower(std::string&);