logo       

Simple .i files.: msg#00118

programming.swig

Subject: Simple .i files.

Hello-

I have a very simple .i file for a Python wrapper to a C++ library. Something like this:

-------------------
%{
#include "myAPI.h"
%}
#include "myAPI.h"
-------------------

I'd like to add a single command:
%cstring_bounded_output(char *id, 32);
void MyClass::MyMethod(char *id);

for a single "out-of-the-ordinary" thing, I don't want to replicate the entire .h file. Can I do this sort of thing? It compiles fine but I want to make sure this is the right thing to do.

Jake

_______________________________________________
Swig maillist - Swig@xxxxxxxxxxxxxxx
http://mailman.cs.uchicago.edu/mailman/listinfo/swig



<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise