source: libcfa/src/enum.cfa@ 03ac869

Last change on this file since 03ac869 was 03ac869, checked in by JiadaL <j82liang@…>, 18 months ago

Add GCC visibility push(default); Fix trait satisfaction problem

  • Property mode set to 100644
File size: 531 bytes
Line 
1#include "enum.hfa"
2#include "fstream.hfa"
3
4#pragma GCC visibility push(default)
5
6forall(T, E| TypedEnum(T, E)) {
7 // constructors
8
9 // comparison
10 int ?==?(E l, E r) { return posE(l) == posE(r); }
11 int ?!=?(E l, E r) { return posE(l) != posE(r); }
12 int ?!=?(E l, zero_t) { return !( posE(l) == 0 ); }
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 int ?>=?(E l, E r) { return posE(l) >= posE(r); }
17}
Note: See TracBrowser for help on using the repository browser.