2020-11-10 20:31:04 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <hex.hpp>
|
|
|
|
#include <string>
|
|
|
|
|
|
|
|
namespace hex {
|
|
|
|
|
2020-11-13 11:07:05 +00:00
|
|
|
struct VariableType {
|
|
|
|
size_t size;
|
|
|
|
enum class Kind { Unsigned, Signed, FloatingPoint } kind;
|
|
|
|
};
|
|
|
|
|
2020-11-10 20:31:04 +00:00
|
|
|
struct Highlight {
|
2020-11-13 11:07:05 +00:00
|
|
|
Highlight(u64 offset, VariableType type, u32 color, std::string name)
|
|
|
|
: offset(offset), type(type), color(color), name(name) {
|
2020-11-10 20:31:04 +00:00
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
u64 offset;
|
2020-11-13 11:07:05 +00:00
|
|
|
VariableType type;
|
2020-11-10 20:31:04 +00:00
|
|
|
u32 color;
|
|
|
|
std::string name;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|