libs-base/Source/NSNumberMethods.h
rfm 47810e15de move a bit more stuff into additions
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@29666 72102866-910b-0410-8b05-ffd578937521
2010-02-18 16:18:54 +00:00

21 lines
435 B
C

#define INTEGER_MACRO(type, name, ignored) \
- (type) name ## Value\
{\
return (type)VALUE;\
}
#include "GSNumberTypes.h"
- (const char *) objCType
{
return @encode(typeof(VALUE));
}
- (NSString*) descriptionWithLocale: (id)aLocale
{
return [[[NSString alloc] initWithFormat: FORMAT
locale: aLocale, VALUE] autorelease];
}
- (void) getValue: (void*)buffer
{
typeof(VALUE) *ptr = buffer;
*ptr = VALUE;
}
#undef FORMAT