假设我在cpp中有一个名为MyType
在haxe:
@:native('MyType') extern class MyType {}
typedef MyTypeStar = cpp.Pointer<MyType>;
所以var myTypePointer:MyTypeStar
等同于MyType*
那么如何从MyType**
获得myTypePointer:MyTypeStar
等价物?尝试RawPointer.addressOf(myTypePointer.raw)
但不起作用:
导致本机编译错误
error: lvalue required as unary '&' operand
HXLINE( 198) ::MyType** cs = &(this->myTypePointer->get_raw());