我有这个定义:
use NativeCall;
unit module kazmath;
class mat4 is repr('CStruct') {
HAS num32 @.mat[16] is CArray;
}
sub kmMat4Fill( mat4 $mat, num32 @filler ) returns mat4 is native('kazmath')
is export {*}
绑定的函数在这里定义:
kmMat4* kmMat4Fill(kmMat4* pOut, const kmScalar* pMat);
并且返回的错误是:
Too many positionals passed; expected 2 arguments but got 3
我真的想不通。