blob: 33092dca6e5a039caea7bfc6a27dce10e3123f2e [file] [log] [blame]
Steven Moreland78ab7532019-01-10 13:04:23 -08001/*
2 * Copyright (C) 2019 The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17#pragma once
18
19namespace android {
20
21// Provide detailed information about struct and enum values in Java. In C++, these functions are
22// in headers so that only clients that need them have to absorb the function size cost. However,
23// no such option is available in Java, so it is guarded globally.
24#ifdef HIDL_DETAILED_JAVA_TO_STRING
25constexpr static bool kDetailJavaToString = true;
26#else
27constexpr static bool kDetailJavaToString = false;
28#endif
29
30} // android