TagNames.cpp 516 B

123456789101112131415161718192021222324252627
  1. /*
  2. * Copyright (c) 2020, Matthew Olsson <mattco@serenityos.org>
  3. *
  4. * SPDX-License-Identifier: BSD-2-Clause
  5. */
  6. #include <LibWeb/SVG/TagNames.h>
  7. namespace Web::SVG::TagNames {
  8. #define __ENUMERATE_SVG_TAG(name) FlyString name;
  9. ENUMERATE_SVG_TAGS
  10. #undef __ENUMERATE_SVG_TAG
  11. void initialize_strings()
  12. {
  13. static bool s_initialized = false;
  14. VERIFY(!s_initialized);
  15. #define __ENUMERATE_SVG_TAG(name) name = #name##_fly_string;
  16. ENUMERATE_SVG_TAGS
  17. #undef __ENUMERATE_SVG_TAG
  18. s_initialized = true;
  19. }
  20. }