Add v8 input typemap for cstrings.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/oliverb-javascript-v8@13762 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
8168750c1b
commit
229f2d0fa5
1 changed files with 6 additions and 5 deletions
|
|
@ -60,8 +60,10 @@
|
|||
%typemap(out) float, double
|
||||
%{ $result = v8::Number::New($1); %}
|
||||
|
||||
%typemap(out) const bool &, bool &,
|
||||
const char &, char &,
|
||||
%typemap(out) const bool &, bool &
|
||||
%{ $result = v8::Boolean::New((*$1);%}
|
||||
|
||||
%typemap(out) const char &, char &,
|
||||
const signed char &, signed char &,
|
||||
const unsigned char &, unsigned char &,
|
||||
const short &, short &,
|
||||
|
|
@ -109,14 +111,14 @@
|
|||
// TODO: typemap(out) short* et al.
|
||||
%}
|
||||
|
||||
|
||||
%typemap(out) void
|
||||
%{ $result = v8::Undefined(); %}
|
||||
|
||||
|
||||
%typemap(in) char *
|
||||
%{
|
||||
// TODO: input typemap for char*
|
||||
v8::String::Utf8Value _$1($input);
|
||||
$1 = *_$1;
|
||||
%}
|
||||
|
||||
%typemap(out) char *
|
||||
|
|
@ -148,7 +150,6 @@
|
|||
// TODO: freearg char* et al
|
||||
%}
|
||||
|
||||
|
||||
/* Typemaps for composite types */
|
||||
%typemap(in) SWIGTYPE ($&1_type argp) // Objects passed by value, convert to a pointer
|
||||
%{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue