Simplify the KVC getter code and make it return structs boxed in NSValues

(Apple-compatible).  This is currently slow, because we go via NSInvocation.
We could probably make it faster, but I am not inclined to optimise for
something that I sincerely hope is a very unusual use case.

Richard: Please check I haven't done something silly here...



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31411 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
David Chisnall 2010-09-24 19:20:16 +00:00
parent 0364f2e365
commit ec239ebfaf
4 changed files with 102 additions and 373 deletions

View file

@ -1,4 +1,4 @@
#define INTEGER_MACRO(type, name, ignored) \
#define INTEGER_MACRO(encoding, type, name, ignored) \
- (type) name ## Value\
{\
return (type)VALUE;\