From: Paul G. <pga...@ya...> - 2007-01-10 17:58:24
|
Hi, I searched for this in the archives and doc. I want to perform my own wrapping of a specific member function. I know that %typemaps can add code to arguments wrapping, but I want my function to handle all the wrapping. example: class vector { float x,y,z; }; %extend vector { int __setitem(LUA_state *LA); } but I keep getting this in the vector commands table: "__setitem", _wrap_vector___setitem <---- I don<t want any wrapping, I can perform it myself How do I disable the default _wrap function assignement, so that I can perform a 100% custom wrapping myself. So I would get "__setitem", my_vector__setitem which I could define in: %{ static int my_vector__setitem(LUA_state *LA) { .. peform my wrap here } %} Any help would be appreciated, even if it is not for the LUA version of swig to do anything like this. regards, Paul __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com |