mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-09-24 22:02:23 +01:00
This was bugging me after I saw all the strings; it feels like this is why we have EnumBase on the toolchain side. I've included the move of EnumBase to //common because I figured it's reasonable to evaluate together; if we don't want EnumBase in this case, it doesn't make sense to move.
18 lines
637 B
Modula-2
18 lines
637 B
Modula-2
// Part of the Carbon Language project, under the Apache License v2.0 with LLVM
|
|
// Exceptions. See /LICENSE for license information.
|
|
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
|
|
//
|
|
// Note that this is an X-macro header. It does not use `#include` guards, and
|
|
// instead is designed to be `#include`ed after the x-macro is defined in order
|
|
// for its inclusion to expand to the desired output.
|
|
|
|
#ifndef CARBON_ENUM_BASE_TEST_KIND
|
|
#error "Must define the x-macro to use this file."
|
|
#endif
|
|
|
|
CARBON_ENUM_BASE_TEST_KIND(Beep)
|
|
CARBON_ENUM_BASE_TEST_KIND(Boop)
|
|
CARBON_ENUM_BASE_TEST_KIND(Burr)
|
|
|
|
#undef CARBON_ENUM_BASE_TEST_KIND
|