Added a typemap %typemap(in) (int LENGTH, char *STRING) that is simply the reverse of %typemap(in) (char *STRING, int LENGTH).
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7533 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
f67b88f7f4
commit
2f774be1b9
1 changed files with 5 additions and 0 deletions
|
|
@ -7,6 +7,11 @@
|
|||
* String & length
|
||||
* ------------------------------------------------------------ */
|
||||
|
||||
%typemap(in) (int LENGTH, char *STRING) {
|
||||
$1 = ($1_ltype) StringValueLen($input);
|
||||
$2 = ($2_ltype) StringValuePtr($input);
|
||||
}
|
||||
|
||||
%typemap(in) (char *STRING, int LENGTH) {
|
||||
$1 = ($1_ltype) StringValuePtr($input);
|
||||
$2 = ($2_ltype) StringValueLen($input);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue