11 lines
171 B
C++
11 lines
171 B
C++
#include <luna/Stack.h>
|
|
|
|
Stack::Stack(u64 base, usize bytes) : m_base(base), m_bytes(bytes)
|
|
{
|
|
}
|
|
|
|
u64 Stack::top() const
|
|
{
|
|
return (m_base + m_bytes) - sizeof(void*);
|
|
}
|