Changeset 6ff08d8 for libcfa/prelude
- Timestamp:
- Jul 12, 2021, 1:44:35 PM (5 years ago)
- Branches:
- ADT, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, master, new-ast-unique-expr, pthread-emulation, qualifiedEnum, stuck-waitfor-destruct
- Children:
- 605673f, 9345684
- Parents:
- cf444b6 (diff), a953c2e3 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)links above to see all the changes relative to each parent. - File:
-
- 1 edited
-
libcfa/prelude/builtins.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
libcfa/prelude/builtins.c
rcf444b6 r6ff08d8 57 57 58 58 // generator support 59 struct $generator{59 struct generator$ { 60 60 inline int; 61 61 }; 62 62 63 static inline void ?{}( $generator& this) { ((int&)this) = 0; }64 static inline void ^?{}( $generator&) {}63 static inline void ?{}(generator$ & this) { ((int&)this) = 0; } 64 static inline void ^?{}(generator$ &) {} 65 65 66 66 trait is_generator(T &) { 67 67 void main(T & this); 68 $generator* get_generator(T & this);68 generator$ * get_generator(T & this); 69 69 }; 70 70
Note:
See TracChangeset
for help on using the changeset viewer.