Page 1 of 1

Re: Functions taking structs by value

PostPosted: Fri Feb 28, 2014 11:44 am
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?

Re: Functions taking structs by value

PostPosted: Mon Mar 03, 2014 12:29 pm
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.