XS:
Expand|Select|Wrap|Line Numbers
- class A{
- A() { a = 100;};
- int a;
- };
Expand|Select|Wrap|Line Numbers
- package->new();
and I also wrote a perl function that return this pointer
Expand|Select|Wrap|Line Numbers
- my($self) = @;
- return \$self->[CPPSPLITOBJECT];
Expand|Select|Wrap|Line Numbers
- SV* chunk = newSV(0);
- call_GetCppObject(currentObject, chunk)
- CppSplitSeqClass* cppObject = (CppSplitClass*)chunk;
Expand|Select|Wrap|Line Numbers
- cppObject->a;
What can be wrong here?