Skip to content

Commit 7c50a50

Browse files
committed
Mark GetRootSys/GetTempFs/GetDataDir inline
Lest we incur in multiple symbol definitions problems.
1 parent f91c80a commit 7c50a50

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

include/rootbench/RBConfig.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,22 +14,22 @@ namespace RB {
1414
///
1515
///\returns invalid path if the variable is not set.
1616
///
17-
std::string GetTempFs() {
17+
inline std::string GetTempFs() {
1818
if (char* tempfs = std::getenv("RB_TEMP_FS"))
1919
return tempfs;
2020

2121
rb_abort("Please set the RB_TEMP_FS env variable!");
2222
}
2323

24-
std::string GetRootSys() {
24+
inline std::string GetRootSys() {
2525
if (char* rootsys = std::getenv("ROOTSYS"))
2626
return rootsys;
2727

2828
rb_abort("Please set the ROOTSYS env variable!");
2929
}
3030

3131
/// Return the absolute path to the directory where data will be downloaded
32-
std::string GetDataDir() {
32+
inline std::string GetDataDir() {
3333
return RB::kDatasetDirectory;
3434
}
3535
}

0 commit comments

Comments
 (0)