Quantcast
Channel: Intel® Software - Intel® Visual Fortran Compiler for Windows*
Viewing all articles
Browse latest Browse all 5691

"global" !DEC$ ATTRIBUTES STDCALL

$
0
0

In another thread we were looking at OpenGL (GLU) interfaces and I was looking at one of my own API interface modules. This module uses  BIND(C,name='xxxx') and in every interface we have "!DEC$ ATTRIBUTES STDCALL :: Func_or_sub_name. It occurred that is would be much neater and easier to have a global STDCALL attribute for the source file (or module scope) but is would seem this is not an option.

You can have !DEC$ ATTRIBUTES STDCALL :: name1, name2, name3 but that is a worse option in terms of code maintenance.

Is there any way of doing this? I would not do it via compiler option as I think that is quite error prone method.


Viewing all articles
Browse latest Browse all 5691

Trending Articles



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