Luna/libluna/include/luna/Stack.h

25 lines
314 B
C
Raw Normal View History

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