macro gymnastics to implement storage kernel, buffer op and complex compute panel

This commit is contained in:
Youmu Liu
2025-11-13 19:09:27 +08:00
parent 2dfb4ae86a
commit 1417785726
18 changed files with 373 additions and 383 deletions
+4 -13
View File
@@ -3,16 +3,9 @@
#ifdef _WIN32
// clang-format off
BOOL APIENTRY DllMain(
HMODULE hModule,
DWORD ul_reason_for_call,
LPVOID lpReserved
)
BOOL APIENTRY DllMain(HMODULE hModule, DWORD ul_reason_for_call, LPVOID lpReserved)
{
switch (ul_reason_for_call)
{
switch (ul_reason_for_call) {
case DLL_PROCESS_ATTACH:
return 1;
case DLL_THREAD_ATTACH:
@@ -21,9 +14,9 @@ BOOL APIENTRY DllMain(
return 1;
case DLL_PROCESS_DETACH:
return 1;
break;
break;
}
return TRUE;
return TRUE;
}
#else
attribute((constructor)) void DllMain()
@@ -31,5 +24,3 @@ attribute((constructor)) void DllMain()
}
#endif // _WIN32
// clang-format on