Changeset 3f681b1 for src/AST/Node.hpp


Ignore:
Timestamp:
May 11, 2022, 11:33:21 AM (2 years ago)
Author:
Andrew Beach <ajbeach@…>
Branches:
ADT, ast-experimental, master, pthread-emulation, qualifiedEnum
Children:
7675f58
Parents:
e6bb667
Message:

Added the new invariant checks. There seems to be a few unset locations in the multi-level exit code.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/AST/Node.hpp

    re6bb667 r3f681b1  
    5151        bool isManaged() const { return strong_count > 0; }
    5252        bool isReferenced() const { return weak_count > 0; }
     53        bool isStable() const {
     54                return (1 == strong_count || (1 < strong_count && 0 == weak_count));
     55        }
    5356
    5457private:
Note: See TracChangeset for help on using the changeset viewer.