Add some missing SWIGINTERN usage
This commit is contained in:
parent
6ec243c093
commit
d9db3cf628
6 changed files with 21 additions and 11 deletions
|
|
@ -10,10 +10,13 @@
|
|||
|
||||
%{
|
||||
#include <string>
|
||||
CAML_VALUE SwigString_FromString(const std::string& s) {
|
||||
return caml_val_string((char *)s.c_str());
|
||||
}
|
||||
std::string SwigString_AsString(CAML_VALUE o) {
|
||||
return std::string((char *)caml_ptr_val(o,0));
|
||||
}
|
||||
SWIGINTERNINLINE
|
||||
CAML_VALUE SwigString_FromString(const std::string &s) {
|
||||
return caml_val_string((char *)s.c_str());
|
||||
}
|
||||
|
||||
SWIGINTERNINLINE
|
||||
std::string SwigString_AsString(CAML_VALUE o) {
|
||||
return std::string((char *)caml_ptr_val(o,0));
|
||||
}
|
||||
%}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue