projects
/
external
/
swig.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
import source from 1.3.40
[external/swig.git]
/
Examples
/
test-suite
/
cast_operator.i
1
%module cast_operator
2
3
%rename(tochar) A::operator char*() const;
4
%inline %{
5
#include <string.h>
6
struct A
7
{
8
operator char*() const;
9
};
10
11
inline
12
A::operator char*() const
13
{
14
static char hi[16];
15
strcpy(hi, "hi");
16
return hi;
17
}
18
19
%}
20