AsmGrader 0.0.0
Loading...
Searching...
No Matches
byte.hpp File Reference
#include <asmgrader/common/aliases.hpp>
#include <asmgrader/common/formatters/debug.hpp>
#include <fmt/base.h>
#include <fmt/format.h>
#include <gsl/util>
#include <concepts>
#include <cstddef>
#include <stdexcept>
Include dependency graph for byte.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  asmgrader::Byte
 More user-friendly interface wrapper for a byte-like integral. More...
 
struct  fmt::formatter<::asmgrader::Byte >
 

Namespaces

namespace  asmgrader
 

Macros

#define DEF_BINARY_OP(op)
 
#define DEF_BINARY_ASSIGN_OP(op)
 

Macro Definition Documentation

◆ DEF_BINARY_ASSIGN_OP

#define DEF_BINARY_ASSIGN_OP ( op)
Value:
constexpr Byte& operator op(const Byte & rhs) { \
value op rhs.value; \
return *this; \
}

◆ DEF_BINARY_OP

#define DEF_BINARY_OP ( op)
Value:
constexpr Byte operator op(const Byte& rhs) const { return static_cast<u8>(value op rhs.value); }