From 38b6137c38243d98f91aaf3a157a0aeba2e96be4 Mon Sep 17 00:00:00 2001 From: dev0 Date: Sat, 22 Nov 2025 12:48:18 +0530 Subject: [PATCH] Fixes --- .../clangd/index/Main.cpp.8DF821074DA7C9F4.idx | Bin 1858 -> 0 bytes .../clangd/index/dummy.cpp.B9E4701905B53878.idx | Bin 742 -> 0 bytes .../imp/inl/IACore/platform/environment.inl | 10 +++++----- Src/IACore/imp/inl/IACore/platform/platform.inl | 9 ++++++++- Src/IACore/imp/inl/IACore/platform/process.inl | 8 ++++---- Src/IACore/inc/hpp/IACore/DynamicLib.hpp | 2 +- Src/IACoreTest/imp/cpp/Main.cpp | 6 +++--- 7 files changed, 21 insertions(+), 14 deletions(-) delete mode 100644 .cache/clangd/index/Main.cpp.8DF821074DA7C9F4.idx delete mode 100644 .cache/clangd/index/dummy.cpp.B9E4701905B53878.idx diff --git a/.cache/clangd/index/Main.cpp.8DF821074DA7C9F4.idx b/.cache/clangd/index/Main.cpp.8DF821074DA7C9F4.idx deleted file mode 100644 index ce9edb736db84f56c34aa875432b9ffa712c4d63..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1858 zcmb_cO=uHA6rQxJt=TlTYHZbQvecrsx=9;H}Ac9J0tO- zp-2M&vKBvTKqt!q02Y&OI~Yw9-d1N$`j>&sQ zVwu#=%--loDxMln)0M&4z@Fg}NF?Zx9HlZ7kCs>Zdw~>}BcXVdv^43mg&`X>IK^NZ zs|+He5JIN@@B2(Obf{1O(#{?rjjMXr%mYaU5|Me;B4;6Z1V|Q;Ftn{AR-vRJ+%HFz zUD(RwtRW5|9ok9~so1iu2}c}5b}_4qX{V?mO9}Uc!-{MfM$tshF=b3vMlDOXm4rTJ zC`UJKP)N#@(y2=C79iP<)}J?vYuAQ*z+c3lDLGGlS8H=C!(q0%*ozhY&-^jJ6cX=Ct*2fWpAlNL6XxyoC;dG z!(f7BHxdek{vsK3i=lj}tTtli6vCEikP;2jyRHc-jiGjI2`it6xORNWY@v2!q%>4$ z+qEMcgQ{cwN3^tNLiCR(wHvAwu|cXC6fiO!@=6^ua@)uQwff_oeOJ0~Z1ey>00Q61 zca=ox@gm~%i>{gNYtG&GfOfLn!nHJ(1Y5>%!oKAKAalmo-raQF>+%TvdcKd5veD)K zh4lDYVeh*X8Yb4>X73Vab#?Z`L-fQsKuIJ%%+Bb1`ug+u+xmmly3y-p*3+jN-0sWI zCh9zbzt6w5;;10@i52b9%@fTRCm-9CGQh87lwb9M@%ME*F3`Ol{xx&=G-MxA#wed3o2lUQbT(`9)^r5dvIbVO0}- zVr7lZl7!J*Gk=pP+Vtkzz;hZ#H@}WebF>`Hy|K6^$&bsMMJ+Q}yq4 zDf4f$49L3T@kBRlownY+U<0^G%#8hsm#~(DxfoCl%o^1)O7XgB}FIbrYk)=2jX(xU!+C5 z-R-~*`jbK`jvr|_z=$wQqbk7RD~d){6pf-R%P23jUVF&O`u`**ktq!(gSQtqU(USI z^$7mx8%*Onu{CQuriVt-d((I(`3Q6LwCDT&4i@~i0;tFTtqj~+C*}TGF?U;3af!|{ t*Fda2|NiaA>;10>1b}I-Uf|nl^V#9S!zT~w`$v0?qvMn2qsO(U@C&^(<)Z)q diff --git a/Src/IACore/imp/inl/IACore/platform/environment.inl b/Src/IACore/imp/inl/IACore/platform/environment.inl index 7ff6450..c149eb2 100644 --- a/Src/IACore/imp/inl/IACore/platform/environment.inl +++ b/Src/IACore/imp/inl/IACore/platform/environment.inl @@ -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 \ No newline at end of file +#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 diff --git a/Src/IACore/imp/inl/IACore/platform/platform.inl b/Src/IACore/imp/inl/IACore/platform/platform.inl index bf08e4a..3e7024e 100644 --- a/Src/IACore/imp/inl/IACore/platform/platform.inl +++ b/Src/IACore/imp/inl/IACore/platform/platform.inl @@ -132,4 +132,11 @@ namespace ia { std::this_thread::sleep_for(std::chrono::milliseconds(milliseconds)); } -} \ No newline at end of file +} + +#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 \ No newline at end of file diff --git a/Src/IACore/imp/inl/IACore/platform/process.inl b/Src/IACore/imp/inl/IACore/platform/process.inl index 886500e..e40fd95 100644 --- a/Src/IACore/imp/inl/IACore/platform/process.inl +++ b/Src/IACore/imp/inl/IACore/platform/process.inl @@ -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 \ No newline at end of file diff --git a/Src/IACore/inc/hpp/IACore/DynamicLib.hpp b/Src/IACore/inc/hpp/IACore/DynamicLib.hpp index 22fbba4..b8c8fbe 100644 --- a/Src/IACore/inc/hpp/IACore/DynamicLib.hpp +++ b/Src/IACore/inc/hpp/IACore/DynamicLib.hpp @@ -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()); diff --git a/Src/IACoreTest/imp/cpp/Main.cpp b/Src/IACoreTest/imp/cpp/Main.cpp index 7aad1ae..ae4f4ef 100644 --- a/Src/IACoreTest/imp/cpp/Main.cpp +++ b/Src/IACoreTest/imp/cpp/Main.cpp @@ -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; } \ No newline at end of file