L
Lyes Amazouz
[Note: parts of this message were removed to make it a legal post.]
Hello!
I've wrote a C library where I redefined (with typedef) the "char" and I
gave it the name "my_char". Every things worked well when I gave constant
strings to my wrapped functions which takes a "my_char *" as argument (then
it is equivalent to give a char * argument). But when I have given a String
variable to one of my functions (I initialised a variable var = "" and gave
it to the finction), it returned me this:
Expected argument 3 of type my_char *, but got String "" (TypeError)
How can I do to tell SWIG that the "my_char" type is euivalent to the "char"
type? May I have a solution to make work my functions
thank you
Hello!
I've wrote a C library where I redefined (with typedef) the "char" and I
gave it the name "my_char". Every things worked well when I gave constant
strings to my wrapped functions which takes a "my_char *" as argument (then
it is equivalent to give a char * argument). But when I have given a String
variable to one of my functions (I initialised a variable var = "" and gave
it to the finction), it returned me this:
Expected argument 3 of type my_char *, but got String "" (TypeError)
How can I do to tell SWIG that the "my_char" type is euivalent to the "char"
type? May I have a solution to make work my functions
thank you