Skip to content

Add more special keywords to parser

David Gobbi requested to merge dgobbi/vtk:compiler-keywords into master

Adds __attribute() for icc, __inline and __forceinline for MSVC.

The __attribute() and __forceinline keywords are used in the VTK_ALWAYS_INLINE macro in vtkSetGet.h, so the wrapper's parser must be able to handle them in order to avoid build errors when this macro is used.

Wrapper-specific macro definitions can also be used to hide compiler-specific keywords from the wrappers, while keeping them visible to the compiler:

#if defined(__VTK_WRAP__)
#define VTK_ALWAYS_INLINE inline
#elif defined(VTK_COMPILER_MSVC)
#define VTK_ALWAYS_INLINE __forceinline
...
Edited by David Gobbi

Merge request reports

Loading