2023-11-19 21:07:21 +00:00

23 lines
490 B
C++

#pragma once
#include "TypeDeclaration.h"
#include "Utils/ClassUtils.h"
#include <memory>
#include <string>
class Variable
{
public:
std::string m_name;
bool m_has_alignment_override;
unsigned m_alignment_override;
unsigned m_offset;
std::unique_ptr<TypeDeclaration> m_type_declaration;
Variable(std::string name, std::unique_ptr<TypeDeclaration> typeDeclaration);
_NODISCARD unsigned GetAlignment() const;
_NODISCARD bool GetForceAlignment() const;
};