Compare commits

...

1 Commits

Author SHA1 Message Date
38b6137c38 Fixes 2025-11-22 12:48:18 +05:30
7 changed files with 21 additions and 14 deletions

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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());

View File

@ -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;
}