C
C#17mo ago
Feast

Any platform macro?

I want to specified the native lib name on different platform
4 Replies
Feast
FeastOP17mo ago
like const string Path = #if Win32 #elif Linux
Angius
Angius17mo ago
Stack Overflow
C# preprocessor differentiate between operating systems
Is it possible to differentiate between operating systems in C# using preprocessor? like : #if OS_WINDOWS //windows methods #elif OS_MAC //mac methods #elif OS_LINUX //linux methods #endif
Angius
Angius17mo ago
For reference, the #stuff is called "pragmas" or "preprocessor directives" in C#
Feast
FeastOP17mo ago
roger that√
Want results from more Discord servers?
Add your server