Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- enum Foo{
- Bar(int x, char c);
- Baz(int* x, int a, short p);
- }
- void f(Foo* foo){
- if (foo is Bar){
- g(foo as Bar);
- }
- }
- void g(Bar* bar){
- bar->x = 10;
- bar->c = 'x';
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement