|
cgma
|
#include "CubitDynamicLoader.hpp"#include <vector>#include <sys/stat.h>#include "CubitMessage.hpp"#include "CubitString.hpp"#include <dlfcn.h>Go to the source code of this file.
Functions | |
| static bool | absolute_path (const char *path) |
Variables | |
| static std::vector< CubitString > | gSearchPaths |
| static bool absolute_path | ( | const char * | path | ) | [static] |
Definition at line 20 of file CubitDynamicLoader.cpp.
{
#ifdef _WIN32
// either a '\' or a 'x:' drive letter means absolute path
return path[0] == '\\' || (path[0] != '\0') ? (path[1] == ':') : 0;
#else
// a '/' is always an absolute path
return path[0] == '/';
#endif
}
std::vector<CubitString> gSearchPaths [static] |
Definition at line 13 of file CubitDynamicLoader.cpp.