source: libcfa/src/enum.cfa @ 85855b0

Last change on this file since 85855b0 was 85855b0, checked in by JiadaL <j82liang@…>, 4 months ago
  1. Implement enum cast; 2. Change valueE so that opague enum returns quasi_void; 3. change enum hiding interpretation and pass visiting scheme
  • Property mode set to 100644
File size: 377 bytes
Line 
1#include "enum.hfa"
2#include "fstream.hfa"
3
4#pragma GCC visibility push(default)
5
6forall(ostype & | basic_ostream(ostype), E, V| CfaEnum(E, V))
7ostype & ?|?(ostype& os, E e) {
8    return os | type_name(e) | "." | labelE(e);
9}
10
11forall(ostype & | basic_ostream(ostype), E| CfaEnum(E, quasi_void))
12ostype & ?|?(ostype& os, E e) {
13    return os | type_name(e) | "." | labelE(e);
14}
Note: See TracBrowser for help on using the repository browser.