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/SWIG@7533 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
b1ac999324
commit
8802ee4035
1 changed files with 5 additions and 0 deletions
|
|
@ -7,6 +7,11 @@
|
||||||
* String & length
|
* String & length
|
||||||
* ------------------------------------------------------------ */
|
* ------------------------------------------------------------ */
|
||||||
|
|
||||||
|
%typemap(in) (int LENGTH, char *STRING) {
|
||||||
|
$1 = ($1_ltype) StringValueLen($input);
|
||||||
|
$2 = ($2_ltype) StringValuePtr($input);
|
||||||
|
}
|
||||||
|
|
||||||
%typemap(in) (char *STRING, int LENGTH) {
|
%typemap(in) (char *STRING, int LENGTH) {
|
||||||
$1 = ($1_ltype) StringValuePtr($input);
|
$1 = ($1_ltype) StringValuePtr($input);
|
||||||
$2 = ($2_ltype) StringValueLen($input);
|
$2 = ($2_ltype) StringValueLen($input);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue