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