SciNamespace.h 1.3 KB

123456789101112131415161718192021222324252627282930313233343536
  1. // Support for building the Scintilla code in the Scintilla namespace using the
  2. // -DSCI_NAMESPACE compiler flag.
  3. //
  4. // Copyright (c) 2017 Riverbank Computing Limited <info@riverbankcomputing.com>
  5. //
  6. // This file is part of QScintilla.
  7. //
  8. // This file may be used under the terms of the GNU General Public License
  9. // version 3.0 as published by the Free Software Foundation and appearing in
  10. // the file LICENSE included in the packaging of this file. Please review the
  11. // following information to ensure the GNU General Public License version 3.0
  12. // requirements will be met: http://www.gnu.org/copyleft/gpl.html.
  13. //
  14. // If you do not wish to use this file under the terms of the GPL version 3.0
  15. // then you may purchase a commercial license. For more information contact
  16. // info@riverbankcomputing.com.
  17. //
  18. // This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
  19. // WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
  20. #ifndef _SCINAMESPACE_H
  21. #define _SCINAMESPACE_H
  22. #ifdef SCI_NAMESPACE
  23. #define QSCI_SCI_NAMESPACE(name) Scintilla::name
  24. #define QSCI_BEGIN_SCI_NAMESPACE namespace Scintilla {
  25. #define QSCI_END_SCI_NAMESPACE };
  26. #else
  27. #define QSCI_SCI_NAMESPACE(name) name
  28. #define QSCI_BEGIN_SCI_NAMESPACE
  29. #define QSCI_END_SCI_NAMESPACE
  30. #endif
  31. #endif