Hello, I have the following piece of code:
static void *Circle_ctor( void *_self, va_list *app ) { struct Circle *self = ( (const struct Class *) Point )->ctor( _self, app ); self->rad = va_arg( *app, int ); return self; }
Build target 'Adt - Point' compiling Circle.c... CIRCLE.C(26): error C212: indirect call: parameters do not fit within registers
Take a look to: http://www.keil.com/support/docs/2066.htm This knowlegde base article discusses how you can deal with error C212.
?!?! You don't use va_arg in the arg list. See your C51 compiler manual, page 211, or any modern C book.