code_junkie

C# in comparison to C++: what is your strongest pain?

Nov 13th, 2011
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. short a = 5;
  2. short b = 3;
  3. short c = a - b;
  4.  
  5. short c = (short)(a - b);
  6.  
  7. #define IF(test){bool _test; if (IfUtil(Protect(_test=(test))){
  8. #define ELIF(test) } if (IfUtil(Protect(!_test && (_test=(test))))){
  9. #define ELSE } if (IfUtil(!_test)) {
  10. #define ENDIF }}
  11.  
  12. //
  13. IF(some_test)
  14. ....
  15. ELIF(another_test)
  16. ....
  17. ....
  18. ELSE
  19. ....
  20. ENDIF
Add Comment
Please, Sign In to add comment