Keyzersoze

BitShift C++ to C#

Jul 31st, 2012
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.16 KB | None | 0 0
  1. C++ Code:
  2. #define SOME_MACRO(x) ((1 << 16) | (x))
  3.  
  4. C# Code
  5. enum SOME_ENUM
  6. {
  7. VAL1 = 0,
  8. VAL2
  9. }
  10.  
  11. int SomeMacro(SOME_ENUM x)
  12. {
  13. return ((1 << 16) | x);
  14. }
Advertisement
Add Comment
Please, Sign In to add comment