Hi there,

I am trying to build Ruby interface of my C++ class. To by more Rubyish I'm modifying the interface a bit using %extend block:

        %extend {
                VALUE hbp_date_time(int index)
                {
                        wchar_t* buff[50];

                        bool res = $self->getHbpDateTime(index, buff, 50);

                        return res ? SWIG_FromWCharPtrAndSize(buff) : Qnil;
                }
        }

The problem is, that my compiler complains that SWIG_FromWCharPtrAndSize is not declared. My question is how to force SWIG to include SWIG_FromWCharPtrAndSize fragment before I'm trying to use it in my extend block?

Thank you very much.


Vit