• var arg, __VA_ARGS__, C99
    hi, i was wondering if anything has changed since nov.2006 in the field of variable arguments in macros. does anybody know something about a support of __VA_ARGS__ in the current c-compiler?...
  • #pragma arm section as compiler command line arg
    I can use the following #pragma in my code to put variables into my own data section: #pragma arm section rwdata = "__my_data_block__" Is it possible to do this as a compiler option so that I can...
  • MACRO
    Hello, May I know if the code as shown below works? -------------------------------------------- #pragma src void main(void){ #pragma asm myMacro MACRO MOV R1, #01 MOV R2, #02 MOV R3,...
  • Using macros with variables declared on #define
    Any ideas why it's impossible to compile that simple code? #define AB_VALUES 2,3 #define Add(a,b) a+b void main(void) { int c; c = Add (AB_VALUES); }
  • why get error "Type mismatch (arg. no. 1) (ptrs to signed/unsigned)"?
    ------------------------------------------- #define uchar unsigned char uchar xdata lcd_show_buf[20]; uchar num; num = 2; sprintf(lcd_show_buf, "%4d", num); ----------------------------...