Changeset 3f7e68b7
- Timestamp:
- Sep 23, 2022, 10:13:31 AM (2 years ago)
- Branches:
- ADT, ast-experimental, master
- Children:
- 43db35e
- Parents:
- b859f59
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/AST/Pass.hpp
rb859f59 r3f7e68b7 395 395 at_cleanup( [func](void *) { func(); }, nullptr ); 396 396 } 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 }405 397 }; 406 398
Note: See TracChangeset
for help on using the changeset viewer.