Functions taking structs by value

Discuss new features and future development.
Post Reply
User avatar
slembcke
Site Admin
Posts: 4166
Joined: Tue Aug 14, 2007 7:13 pm
Contact:

Re: Functions taking structs by value

Post by slembcke »

I guess I had never really thought about it. In C that would be comparatively expensive, but when calling from another language it doesn't really matter since you are paying the cost anyway. I suppose this mostly for the cpVect and cpBB operator functions?
Can't sleep... Chipmunks will eat me...
Check out our latest projects! -> http://howlingmoonsoftware.com/wordpress/
User avatar
slembcke
Site Admin
Posts: 4166
Joined: Tue Aug 14, 2007 7:13 pm
Contact:

Re: Functions taking structs by value

Post by slembcke »

Oh, return values too. :-\ I dunno, that is sounding a lot more specific. You might just want to script that out using the extract_protos.rb script I have in the GitHub code. I've used it to generate similar template code when making bindings.
Can't sleep... Chipmunks will eat me...
Check out our latest projects! -> http://howlingmoonsoftware.com/wordpress/
Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests