C
C#13mo ago
Feast

Any platform macro?

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