[Insight-developers] pragma function(exp)

Ryan, William J. ryan.william at mayo.edu
Fri Nov 19 14:00:25 EST 2010


I can't speak for its place in itkExpImageFilter, but here's the MSDN
documentation on what it does:

 

-------------------------------------------------------------

C/C++ Preprocessor Reference

function (C/C++)

Specifies that calls to functions specified in the pragma's argument
list be generated. 

#pragma function( function1 [, function2, ...] )

  Remarks 

If you use the intrinsic pragma (or /Oi) to tell the compiler to
generate intrinsic functions (intrinsic functions are generated as
inline code, not as function calls), you can use the function pragma to
explicitly force a function call. Once a function pragma is seen, it
takes effect at the first function definition containing a specified
intrinsic function. The effect continues to the end of the source file
or to the appearance of an intrinsic pragma specifying the same
intrinsic function. The function pragma can be used only outside of a
function - at the global level.

 

 

 

From: insight-developers-bounces at itk.org
[mailto:insight-developers-bounces at itk.org] On Behalf Of Hans Johnson
Sent: Thursday, November 18, 2010 10:57 AM
To: ITK
Subject: [Insight-developers] pragma function(exp)

 

In BasicFilters/itkExpImageFilter.h I ran across

#if defined( _MSC_VER )
#pragma function(exp)
#endif


And then in the code itself, it uses vcl_exp everywhere.

Could the pragma be removed?  Does it do anything useful?

Hans

-- 
Hans J. Johnson, Ph.D.
Assistant Professor
200 Hawkins Drive
T205 BT, The University of Iowa
Iowa City, IA 52242

hans-johnson at uiowa.edu
PHONE: 319 353 8587

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/mailman/private/insight-developers/attachments/20101119/1be9aeca/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/gif
Size: 85 bytes
Desc: image001.gif
URL: <http://www.itk.org/mailman/private/insight-developers/attachments/20101119/1be9aeca/attachment.gif>


More information about the Insight-developers mailing list