- Messages
- 43
- Country

I am looking at the sample code in the SDK and curious about the structure of the code.
Here is the code as written in SDK.Temperature.cpp
The format for this is defined in gauges.h as
My question is related to the escape character "\" at the end of almost every line.
Is that escaping out the return character in the editor?
Is the original code the same as this
And is it necessary to do that at all since this seems to build without an issue. Although I have not tried the resulting gauge.
For me my brain processes this structure better than the one line method and I curious if the escapes are necessary.
Here is the code as written in SDK.Temperature.cpp
Code:
GAUGE_HEADER_FS700(GAUGE_W, temperature_gauge_name, &temperature_list, \
temperature_mouse_rect, 0, 0, 0, 0);
The format for this is defined in gauges.h as
Code:
#define GAUGE_HEADER_FS700( \
default_size_mm, \
gauge_name, \
element_list, \
pmouse_rect, \
pgauge_callback, \
user_data, \
parameters, \
usage) \
GAUGE_HEADER_FS800( \
GAUGEHDR_VAR_NAME, \
default_size_mm, \
gauge_name, \
element_list, \
pmouse_rect, \
pgauge_callback, \
user_data, \
usage)
My question is related to the escape character "\" at the end of almost every line.
Is that escaping out the return character in the editor?
Is the original code the same as this
Code:
GAUGE_HEADER_FS700( \
GAUGE_W, \
temperature_gauge_name, \
&temperature_list, \
temperature_mouse_rect, \
0, \
0, \
0, \
0 \
);
And is it necessary to do that at all since this seems to build without an issue. Although I have not tried the resulting gauge.
Code:
GAUGE_HEADER_FS700(
GAUGE_W,
temperature_gauge_name,
&temperature_list,
temperature_mouse_rect,
0,
0,
0,
0
);
For me my brain processes this structure better than the one line method and I curious if the escapes are necessary.

