74dfdd02de
Recursive functions that may go very deep should invoke the function check_stack. It throws an exception if the amount of stack space is limited. The function check_system() is syntax sugar for check_interrupted(); check_stack(); Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
13 lines
317 B
C
13 lines
317 B
C
/*
|
|
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
|
|
// always define LEAN_DEBUG for unit-tests
|
|
#ifndef LEAN_DEBUG
|
|
#define LEAN_DEBUG
|
|
#endif
|
|
#include "util/debug.h"
|
|
#include "util/stackinfo.h"
|