Changeset 498:5c4840391e7b in verona
- Timestamp:
- Jun 6, 2012 3:40:39 PM (12 months ago)
- Branch:
- default
- Files:
-
- 2 edited
-
phcpp/phapipp.h (modified) (2 diffs)
-
swig/verona.i (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
phcpp/phapipp.h
r497 r498 75 75 virtual ~phapi(); 76 76 77 #ifdef SWIG 78 #define virtual 79 #endif 80 77 81 virtual int init(bool asyncMode = true); 78 82 virtual void terminate(); … … 206 210 207 211 protected: 212 #ifdef SWIG 213 #undef virtual 214 #endif 208 215 209 216 // user overridable callbacks -
swig/verona.i
r497 r498 142 142 143 143 %typemap(directorin,descriptor="Ljava/lang/String;") std::string 144 %{ $input = make_jstr(jenv, &$1); %} 144 %{ 145 // dirin std::string 146 $input = make_jstr(jenv, &$1); 147 TmpJOBJ tmp$1_name(jenv, (jobject) $input); 148 %} 145 149 146 150 %typemap(out) std::string … … 148 152 149 153 %typemap(directorin,descriptor="Ljava/lang/String;") const std::string & 150 %{ $input = make_jstr(jenv, &$1); %} 154 %{ 155 // dirin cost std::string& 156 $input = make_jstr(jenv, &$1); 157 TmpJOBJ tmp$1_name(jenv, (jobject) $input); 158 %} 159 160 %typemap(directorin,descriptor="Ljava/lang/String;") const char*, char* 161 %{ 162 // dirin char* 163 $input = 0; 164 if ($1) { 165 $input = jenv->NewStringUTF((const char *)$1); 166 if (!$input) return $null; 167 } 168 169 TmpJOBJ tmp$1_name(jenv, (jobject) $input); 170 %} 171 151 172 152 173 %typemap(out) const std::string & … … 163 184 #else 164 185 %include "std_map.i" 186 #ifndef SWIGJAVA 165 187 %include "std_string.i" 188 #endif 166 189 %include "std_vector.i" 167 190 %include "std_pair.i"
Note: See TracChangeset
for help on using the changeset viewer.
