proxygen
Main Page
Related Pages
Namespaces
Classes
Files
Examples
File List
File Members
b.cpp
Go to the documentation of this file.
1
/*
2
* Copyright 2018-present Facebook, Inc.
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
#include <
folly/experimental/settings/test/b.h
>
17
18
#include <
folly/experimental/settings/Settings.h
>
19
20
namespace
b_ns
{
21
22
FOLLY_SETTING_DEFINE
(
23
follytest,
24
public_flag_to_b,
25
std::string
,
26
"basdf"
,
27
"Public flag to b"
);
28
29
namespace
{
30
FOLLY_SETTING_DEFINE
(
31
follytest,
32
internal_flag_to_b,
33
std::string
,
34
"test"
,
35
"Desc of str"
);
36
}
37
38
std::string
b_func
() {
39
return
*
FOLLY_SETTING
(follytest, internal_flag_to_b) +
40
*
FOLLY_SETTING
(follytest, public_flag_to_b);
41
}
42
43
}
// namespace b_ns
b_ns::FOLLY_SETTING_DEFINE
FOLLY_SETTING_DEFINE(follytest, public_flag_to_b, std::string,"basdf","Public flag to b")
b.h
b_ns::b_func
std::string b_func()
Definition:
b.cpp:38
Settings.h
b_ns
Definition:
b.cpp:20
FOLLY_SETTING
#define FOLLY_SETTING(_project, _name)
Definition:
Settings.h:192
string
const char * string
Definition:
Conv.cpp:212
proxygen
folly
folly
experimental
settings
test
b.cpp
Generated by
1.8.11