Note that this only works in internal contexts. to prevent reentrancy: assert(!is_reentrant());
assert(!is_reentrant());
Error log for when reentrancy has been detected