irrLegacyDefines.h 1.1 KB

12345678910111213141516171819202122232425
  1. // This file is part of the "Irrlicht Engine".
  2. // For conditions of distribution and use, see copyright notice in irrlicht.h
  3. #ifndef IRR_LEGACY_DEFINES_H_INCLUDED
  4. #define IRR_LEGACY_DEFINES_H_INCLUDED
  5. //! Include this file _after_ irrlicht.h
  6. //! It contains old defines which got replaced in Irrlicht.
  7. //! So including this header is a quick fix to allow users compiling old code
  8. //! without having to rewrite it all. Thought in the long run you should
  9. //! switch to the new defines as well.
  10. // Defines replaced in Irrlicht 1.9 as they were reserved identifiers in c++
  11. #define _IRR_DEPRECATED_ IRR_DEPRECATED
  12. #define _IRR_OVERRIDE_ IRR_OVERRIDE
  13. #define _IRR_DEBUG_BREAK_IF IRR_DEBUG_BREAK_IF
  14. #define _IRR_TEXT IRR_TEXT
  15. // Defines which are used in Irrlicht 1.9 and changed their name as they were reserved identifiers in c++
  16. // Those can't be set here as it's defines _users_ can set.
  17. // If you have any of those in your code, you will have to change them there.
  18. // _IRR_DONT_DO_MEMORY_DEBUGGING_HERE -> IRR_DONT_DO_MEMORY_DEBUGGING_HERE
  19. #endif