MCPcopy Create free account
hub / github.com/brainflow-dev/brainflow / get_lib_name

Method get_lib_name

src/board_controller/neuromd/brainbit_bled.cpp:35–68  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

33}
34
35std::string BrainBitBLED::get_lib_name ()
36{
37 std::string brainbitlib_path = "";
38 std::string brainbitlib_name = "";
39 char brainbitlib_dir[1024];
40 bool res = get_dll_path (brainbitlib_dir);
41
42#ifdef _WIN32
43 if (sizeof (void *) == 4)
44 {
45 brainbitlib_name = "BrainBitLib32.dll";
46 }
47 else
48 {
49 brainbitlib_name = "BrainBitLib.dll";
50 }
51#endif
52#ifdef __linux__
53 brainbitlib_name = "libBrainBitLib.so";
54#endif
55#ifdef __APPLE__
56 brainbitlib_name = "libBrainBitLib.dylib";
57#endif
58
59 if (res)
60 {
61 brainbitlib_path = std::string (brainbitlib_dir) + brainbitlib_name;
62 }
63 else
64 {
65 brainbitlib_path = brainbitlib_name;
66 }
67 return brainbitlib_path;
68}
69
70int BrainBitBLED::prepare_session ()
71{

Callers

nothing calls this directly

Calls 1

get_dll_pathFunction · 0.85

Tested by

no test coverage detected