Fixes
This commit is contained in:
Binary file not shown.
Binary file not shown.
@ -18,8 +18,8 @@
|
||||
|
||||
#include "platform.inl"
|
||||
|
||||
#if (defined(IA_PLATFORM_WIN64) && (IA_PLATFORM_WIN64 > 0))
|
||||
#include "win/environment.inl"
|
||||
#else
|
||||
#error "IACore Unsupported Platform"
|
||||
#endif
|
||||
#if (defined(IA_CORE_PLATFORM_FEATUES) && (IA_CORE_PLATFORM_FEATUES > 0))
|
||||
#if (defined(IA_PLATFORM_WIN64) && (IA_PLATFORM_WIN64 > 0))
|
||||
#include "win/environment.inl"
|
||||
#endif
|
||||
#endif
|
||||
|
||||
@ -132,4 +132,11 @@ namespace ia
|
||||
{
|
||||
std::this_thread::sleep_for(std::chrono::milliseconds(milliseconds));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#if (defined(IA_PLATFORM_WIN64) && (IA_PLATFORM_WIN64 > 0))
|
||||
#define IA_CORE_PLATFORM_FEATUES 1
|
||||
#else
|
||||
#define IA_CORE_PLATFORM_FEATUES 0
|
||||
#warning "IACore Unsupported Platform: Platform specific features will be disabled"
|
||||
#endif
|
||||
@ -18,8 +18,8 @@
|
||||
|
||||
#include "platform.inl"
|
||||
|
||||
#if (defined(IA_PLATFORM_WIN64) && (IA_PLATFORM_WIN64 > 0))
|
||||
#include "win/process.inl"
|
||||
#else
|
||||
#error "IACore Unsupported Platform"
|
||||
#if (defined(IA_CORE_PLATFORM_FEATUES) && (IA_CORE_PLATFORM_FEATUES > 0))
|
||||
#if (defined(IA_PLATFORM_WIN64) && (IA_PLATFORM_WIN64 > 0))
|
||||
#include "win/process.inl"
|
||||
#endif
|
||||
#endif
|
||||
@ -98,7 +98,7 @@ namespace ia
|
||||
PVOID DynamicLib::GetSymbol(IN CONST String &name)
|
||||
{
|
||||
dlerror();
|
||||
const auto symbol = dlsym(handle, name.c_str());
|
||||
const auto symbol = dlsym(m_moduleHandle, name.c_str());
|
||||
const char *dlsym_error = dlerror();
|
||||
if (dlsym_error)
|
||||
THROW_UNKNOWN("DynamicLib: Failed to find the symbol \"", name, "\" with error: ", dlerror());
|
||||
|
||||
@ -30,9 +30,9 @@ int main(int argc, char *argv[])
|
||||
SubProcess p("clang++");
|
||||
p.Launch("a.cpp", [](IN CONST String &line) { printf("[\n%s\n]\n", line.c_str()); });*/
|
||||
|
||||
printf("[%s]\n", Environment::GetVar("IAEDK_ROOT").c_str());
|
||||
Environment::SetVar("IAEDK_ROOT", "C:\\IAEDK");
|
||||
printf("[%s]\n", Environment::GetVar("IAEDK_ROOT").c_str());
|
||||
//printf("[%s]\n", Environment::GetVar("IAEDK_ROOT").c_str());
|
||||
//Environment::SetVar("IAEDK_ROOT", "C:\\IAEDK");
|
||||
//printf("[%s]\n", Environment::GetVar("IAEDK_ROOT").c_str());
|
||||
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user