git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11382 626c5289-ae23-0410-ae9c-e8d60b6d4f22
22 lines
448 B
OpenEdge ABL
22 lines
448 B
OpenEdge ABL
%module memberin_extend
|
|
|
|
// Tests memberin typemap. The default char * memberin typemap will be used.
|
|
// The test extends the struct with a pseudo member variable
|
|
|
|
%inline %{
|
|
#include <string>
|
|
struct ExtendMe {
|
|
};
|
|
%}
|
|
|
|
%{
|
|
#include <map>
|
|
std::map<ExtendMe*, char *> ExtendMeStringMap;
|
|
#define ExtendMe_thing_set(self_, val_) ExtendMeStringMap[self_]
|
|
#define ExtendMe_thing_get(self_) ExtendMeStringMap[self_]
|
|
%}
|
|
|
|
%extend ExtendMe {
|
|
char *thing;
|
|
}
|
|
|