Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
Roblox
GitHub Repository: Roblox/luau
Path: blob/master/Analysis/include/Luau/NativeStackGuard.h
2727 views
1
// This file is part of the Luau programming language and is licensed under MIT License; see LICENSE.txt for details
2
#pragma once
3
4
#include <stdint.h>
5
6
namespace Luau
7
{
8
9
struct NativeStackGuard
10
{
11
NativeStackGuard();
12
13
// Returns true if we are not dangerously close to overrunning the C stack.
14
bool isOk() const;
15
16
private:
17
uintptr_t high;
18
uintptr_t low;
19
};
20
21
} // namespace Luau
22
23
namespace Luau
24
{
25
26
uintptr_t getStackAddressSpaceSize();
27
28
}
29
30