blob: f99d42ca01883db5c1ac2cf3f354cb243c12f9b7 [file] [log] [blame]
// Copyright 2018 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package codegen
const fragmentEnumTmpl = `
{{- define "EnumForwardDeclaration" }}
enum class {{ .Name }} : {{ .Type }} {
{{- range .Members }}
{{ .Name }} = {{ .Value }},
{{- end }}
};
{{ end }}
{{- define "EnumTraits" }}
template <>
struct IsFidlType<{{ .Namespace }}::{{ .Name }}> : public std::true_type {};
{{- end }}
`