Open ParticlePeter opened 7 years ago
C++ Function: bool cppFunc( float[3] color );
D binding: extern(C++): pragma( mangle, cppFunc.mangleof ) bool cppFunc( ref float[3] color ); pragma( mangle, cppFunc.mangleof ) bool cppFunc( float* color );
This works with DMD but not with LDC: Error: Function type does not match previously declared function with the same mangled name: cppFunc.mangleof
According to this forum thread its merely a precaution and could be lifted.
Related: #1020
C++ Function: bool cppFunc( float[3] color );
D binding: extern(C++): pragma( mangle, cppFunc.mangleof ) bool cppFunc( ref float[3] color ); pragma( mangle, cppFunc.mangleof ) bool cppFunc( float* color );
This works with DMD but not with LDC: Error: Function type does not match previously declared function with the same mangled name: cppFunc.mangleof
According to this forum thread its merely a precaution and could be lifted.