mirror of
https://github.com/erg-lang/erg.git
synced 2025-10-02 21:44:34 +00:00
fix: relax default limit of set_recursion_limit
This commit is contained in:
parent
e417e56d91
commit
f41264534e
3 changed files with 5 additions and 4 deletions
|
@ -627,6 +627,9 @@ impl RecursionCounter {
|
|||
|
||||
#[macro_export]
|
||||
macro_rules! set_recursion_limit {
|
||||
(panic, $msg:expr) => {
|
||||
set_recursion_limit!(panic, $msg, 256);
|
||||
};
|
||||
(panic, $msg:expr, $limit:expr) => {
|
||||
use std::sync::atomic::AtomicU32;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue