C
C#2y ago
Feast

Any platform macro?

I want to specified the native lib name on different platform
4 Replies
Feast
FeastOP2y ago
like const string Path = #if Win32 #elif Linux
Angius
Angius2y 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
Angius2y ago
For reference, the #stuff is called "pragmas" or "preprocessor directives" in C#
Feast
FeastOP2y ago
roger that√
Want results from more Discord servers?
Add your server