AllowShortBlocksOnASingleLine: Never
AllowShortLoopsOnASingleLine: true
SpaceBeforeParens: Never
+StatementMacros:
+ - __dw_big_endian
printf("\n");
printf("Type a command (.help) for the help\n");
printf("\n");
- double val;
- __dw_big_endian(123.3, double, val = __converted);
- printf("%f\n", val);
+ __dw_big_endian(123, double, );
int len = 0;
char* buf = malloc(1);
buf[0] = 0;
type __converted; \
signed char* __converted_ptr = (signed char*)&__converted; \
int __i; \
- char __endian = dataworks_get_endian(); \
+ int __endian_check = 1; \
+ char __endian = (1 == *(volatile char*)&__endian_check) ? 'L' : 'B'; \
for(__i = 0; __i < sizeof(type); __i++){ \
if(__endian == 'L'){ \
__converted_ptr[sizeof(type) - __i - 1] = __ptr[__i]; \