Functions taking structs by value
- slembcke
- Site Admin
- Posts: 4166
- Joined: Tue Aug 14, 2007 7:13 pm
- Contact:
Re: Functions taking structs by value
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/
Check out our latest projects! -> http://howlingmoonsoftware.com/wordpress/
- slembcke
- Site Admin
- Posts: 4166
- Joined: Tue Aug 14, 2007 7:13 pm
- Contact:
Re: Functions taking structs by value
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/
Check out our latest projects! -> http://howlingmoonsoftware.com/wordpress/
Who is online
Users browsing this forum: No registered users and 8 guests