FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
BehaviorTree.CPP/src/shared_library.cpp at master · BehaviorTree/BehaviorTree.CPP · GitHub
BehaviorTree
/
BehaviorTree.CPP
Public
Notifications
You must be signed in to change notification settings
Fork
857
Star
4.2k
Code
Issues
33
Pull requests
21
Discussions
Actions
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Discussions
Actions
Security and quality
Insights
Expand file tree
Breadcrumbs
BehaviorTree.CPP
/
src
/
shared_library.cpp
Copy path
More file actions
More file actions
Latest commit
History
History
History
28 lines (23 loc) · 627 Bytes
Breadcrumbs
BehaviorTree.CPP
/
src
/
shared_library.cpp
Copy path
File metadata and controls
28 lines (23 loc) · 627 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#
include
"
behaviortree_cpp/utils/shared_library.h
"
#
include
"
behaviortree_cpp/exceptions.h
"
BT
::SharedLibrary::SharedLibrary(
const
std::string& path,
int
flags)
{
load
(path, flags);
}
void
*
BT::SharedLibrary::getSymbol
(
const
std::string& name)
{
void
* result =
findSymbol
(name);
if
(result !=
nullptr
)
{
return
result;
}
throw
RuntimeError
(
"
[SharedLibrary::getSymbol]: can't find symbol
"
, name);
}
bool
BT::SharedLibrary::hasSymbol
(
const
std::string& name)
{
return
findSymbol
(name) !=
nullptr
;
}
std::string
BT::SharedLibrary::getOSName
(
const
std::string& name)
{
return
prefix
() + name +
suffix
();
}
Back
|
FazBrowse Home
|
New Git URL