aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/clickhouse/src/Common/checkStackSize.h
blob: 355ceed430ba63c4b8f0b42e01b37f83536e444b (plain) (blame)
1
2
3
4
5
6
7
#pragma once

/** If the stack is large enough and is near its size, throw an exception.
  * You can call this function in "heavy" functions that may be called recursively
  *  to prevent possible stack overflows.
  */
void checkStackSize();