- Timestamp:
- Aug 30, 2021, 9:01:51 PM (3 years ago)
- Branches:
- ADT, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, master, pthread-emulation, qualifiedEnum
- Children:
- 2a3f0d9
- Parents:
- 9cb6514
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
doc/theses/andrew_beach_MMath/code/resume-fixup-empty-r.cfa
r9cb6514 r01f78e0 10 10 vtable(fixup_exception) fixup_vt; 11 11 12 voidnounwind_empty(unsigned int frames) {12 int nounwind_empty(unsigned int frames) { 13 13 if (frames) { 14 nounwind_empty(frames - 1); 14 int rtn = nounwind_empty(frames - 1); 15 if ( rtn == 42 ) printf( "42" ); // make non-tail recursive 16 return rtn; 15 17 } else { 16 18 int fixup = 17; 17 19 throwResume (fixup_exception){&fixup_vt, fixup}; // change bad fixup 20 return fixup; 18 21 } 19 22 }
Note: See TracChangeset
for help on using the changeset viewer.