Functions taking structs by value

Discuss new features and future development.

Re: Functions taking structs by value

Postby slembcke » Fri Feb 28, 2014 11:44 am

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: 4164
Joined: Tue Aug 14, 2007 7:13 pm

Re: Functions taking structs by value

Postby slembcke » Mon Mar 03, 2014 12:29 pm

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/
User avatar
slembcke
Site Admin
 
Posts: 4164
Joined: Tue Aug 14, 2007 7:13 pm


Return to Features/Development

Who is online

Users browsing this forum: No registered users and 5 guests

cron