Changes in libcfa/src/enum.cfa [c5c123f:41c8312]
- File:
-
- 1 edited
-
libcfa/src/enum.cfa (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
libcfa/src/enum.cfa
rc5c123f r41c8312 1 #include "enum.hfa" 2 3 #pragma GCC visibility push(default) 4 5 forall(T, E| TypedEnum(T, E)) { 6 // constructors 7 8 // comparison 9 int ?==?(E l, E r) { return posE(l) == posE(r); } 10 int ?!=?(E l, E r) { return posE(l) != posE(r); } 11 int ?!=?(E l, zero_t) { return !( posE(l) == 0 ); } 12 int ?<?(E l, E r) { return posE(l) < posE(r); } 13 int ?<=?(E l, E r) { return posE(l) <= posE(r); } 14 int ?>?(E l, E r) { return posE(l) > posE(r); } 15 int ?>=?(E l, E r) { return posE(l) >= posE(r); } 16 }
Note:
See TracChangeset
for help on using the changeset viewer.