This commit is contained in:
2025-11-22 12:48:18 +05:30
parent 1118ec3205
commit 38b6137c38
7 changed files with 21 additions and 14 deletions

View File

@ -18,8 +18,8 @@
#include "platform.inl" #include "platform.inl"
#if (defined(IA_CORE_PLATFORM_FEATUES) && (IA_CORE_PLATFORM_FEATUES > 0))
#if (defined(IA_PLATFORM_WIN64) && (IA_PLATFORM_WIN64 > 0)) #if (defined(IA_PLATFORM_WIN64) && (IA_PLATFORM_WIN64 > 0))
#include "win/environment.inl" #include "win/environment.inl"
#else #endif
#error "IACore Unsupported Platform"
#endif #endif

View File

@ -133,3 +133,10 @@ 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

View File

@ -18,8 +18,8 @@
#include "platform.inl" #include "platform.inl"
#if (defined(IA_CORE_PLATFORM_FEATUES) && (IA_CORE_PLATFORM_FEATUES > 0))
#if (defined(IA_PLATFORM_WIN64) && (IA_PLATFORM_WIN64 > 0)) #if (defined(IA_PLATFORM_WIN64) && (IA_PLATFORM_WIN64 > 0))
#include "win/process.inl" #include "win/process.inl"
#else #endif
#error "IACore Unsupported Platform"
#endif #endif

View File

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

View File

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