Guest User

YYYH

a guest
Jul 19th, 2016
198
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.47 KB | None | 0 0
  1. // Inside file A.h
  2. #pragma once
  3.  
  4. #define NAMESPACE_NAME            TruYobaEngine
  5. #define NS_BEGIN                namespace NAMESPACE_NAME {
  6. #define NS_END                  }
  7. #define NS_USING                using namespace NAMESPACE_NAME;
  8.  
  9. typedef long MY_LONG;
  10. typdef MY_LONG MY_RESULT;
  11.  
  12. // Inside file B.h
  13. #pragma once
  14.  
  15. #include "A.h"
  16.  
  17. NS_BEGIN
  18.  
  19. class IInterface
  20. {
  21. public:
  22.     virtual MY_RESULT methodOne() = 0; // <= error: "MY_RESULT"
  23. };
  24.  
  25. NS_END;
  26.  
  27. // end
Advertisement
Add Comment
Please, Sign In to add comment