Sign in
android
/
platform
/
external
/
swig
/
8a4ab380a16b2bbf520ad62d00d519d58a94ff5e
/
.
/
Examples
/
test-suite
/
smart_pointer_simple.i
blob: ceb499c4185635dd7cd030d0f2a8b6a499b899e2 [
file
] [
log
] [
blame
]
%
module
smart_pointer_simple
%
inline
%{
struct
Foo
{
int
x
;
int
getx
()
{
return
x
;
}
};
class
Bar
{
Foo
*
f
;
public
:
Bar
(
Foo
*
f
)
:
f
(
f
)
{
}
Foo
*
operator
->()
{
return
f
;
}
};
%}