2013-12-01 20:42:32 +00:00
|
|
|
/*
|
|
|
|
Copyright (c) 2013 Microsoft Corporation. All rights reserved.
|
|
|
|
Released under Apache 2.0 license as described in the file LICENSE.
|
|
|
|
|
|
|
|
Author: Leonardo de Moura
|
|
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
namespace lean {
|
2013-12-04 16:56:41 +00:00
|
|
|
size_t get_stack_size(bool main);
|
|
|
|
void save_stack_info(bool main = true);
|
2013-12-01 20:42:32 +00:00
|
|
|
size_t get_used_stack_size();
|
|
|
|
size_t get_available_stack_size();
|
|
|
|
/**
|
|
|
|
\brief Throw an exception if the amount of available stack space is low.
|
|
|
|
*/
|
|
|
|
void check_stack();
|
|
|
|
}
|