Quantcast
Channel: Intel® Fortran Compiler
Viewing all articles
Browse latest Browse all 3270

Referencing conditional logic

$
0
0

I have a .f90 file with dozens of subroutines, each of which require:

#ifdef _WINDOWS

#ifdef BITS64
  use apm_mod_Win_x64
#else
  use apm_mod_Win_x86
#endif

#else

#ifdef BITS64
  use apm_mod_Linux_x64
#else
  use apm_mod_Linux_x86
#endif

#endif

 

Is there a way to define this logic once and then just refer to it in each subroutine?

 

 


Viewing all articles
Browse latest Browse all 3270

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>