25 lines
302 B
C
Raw Normal View History

2022-12-07 14:48:24 +01:00
#pragma once
#include <luna/Types.h>
struct Stack
{
2022-12-18 18:43:17 +01:00
Stack() = default;
2022-12-07 14:48:24 +01:00
Stack(u64 base, usize bytes);
2023-01-10 19:31:41 +01:00
u64 bottom() const
2022-12-07 14:48:24 +01:00
{
return m_base;
}
2023-01-10 19:31:41 +01:00
u64 top() const;
2022-12-07 14:48:24 +01:00
2023-01-10 19:31:41 +01:00
usize bytes() const
2022-12-07 14:48:24 +01:00
{
return m_bytes;
}
private:
u64 m_base;
usize m_bytes;
2023-01-02 13:07:29 +01:00
};