SHARE
TWEET

Untitled

tinyevil Dec 27th, 2018 66 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. enum Foo{
  2.     Bar(int x, char c);
  3.     Baz(int* x, int a, short p);
  4. }
  5.  
  6. void f(Foo* foo){
  7.     if (foo is Bar){
  8.         g(foo as Bar);
  9.     }
  10. }
  11.  
  12. void g(Bar* bar){
  13.     bar->x = 10;
  14.     bar->c = 'x';
  15. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top