Changeset e84ab3d for libcfa/prelude
- Timestamp:
- Jul 5, 2021, 4:44:20 PM (4 years ago)
- Branches:
- ADT, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, master, new-ast-unique-expr, pthread-emulation, qualifiedEnum
- Children:
- 7f62b708
- Parents:
- ee23a8d
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libcfa/prelude/builtins.c
ree23a8d re84ab3d 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.