Changeset 3f7e68b7


Ignore:
Timestamp:
Sep 23, 2022, 10:13:31 AM (2 years ago)
Author:
Andrew Beach <ajbeach@…>
Branches:
ADT, ast-experimental, master
Children:
43db35e
Parents:
b859f59
Message:

It has been ~3 years, still no one is using GuardMethod?.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/AST/Pass.hpp

    rb859f59 r3f7e68b7  
    395395                at_cleanup( [func](void *) { func(); }, nullptr );
    396396        }
    397 
    398         /// When this node is finished being visited, call a member of an object.
    399         template<typename T>
    400         void GuardMethod( T * obj, void (T::*method)() ) {
    401                 at_cleanup( [ method ]( void * object ) {
    402                         static_cast< T * >( object )->method();
    403                 }, static_cast< void * >( obj ) );
    404         }
    405397};
    406398
Note: See TracChangeset for help on using the changeset viewer.