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 6namespace Luau 7{ 8 9struct NativeStackGuard 10{ 11 NativeStackGuard(); 12 13 // Returns true if we are not dangerously close to overrunning the C stack. 14 bool isOk() const; 15 16private: 17 uintptr_t high; 18 uintptr_t low; 19}; 20 21} // namespace Luau 22 23namespace Luau 24{ 25 26uintptr_t getStackAddressSpaceSize(); 27 28} 29 30