Removed semicolon from #define to allow the semicolon to be placed naturally after the macro is used
This commit is contained in:
parent
4b04fdd328
commit
47578806b5
|
@ -28,7 +28,7 @@
|
||||||
*
|
*
|
||||||
* This file is part of the Contiki operating system.
|
* This file is part of the Contiki operating system.
|
||||||
*
|
*
|
||||||
* @(#)$Id: sensors.h,v 1.8 2010/01/14 20:13:34 adamdunkels Exp $
|
* @(#)$Id: sensors.h,v 1.9 2010/02/23 18:27:04 adamdunkels Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef __SENSORS_H__
|
#ifndef __SENSORS_H__
|
||||||
|
@ -51,7 +51,7 @@ const struct sensors_sensor name = { type, value, configure, status }
|
||||||
|
|
||||||
#define SENSORS(...) \
|
#define SENSORS(...) \
|
||||||
const struct sensors_sensor *sensors[] = {__VA_ARGS__, NULL}; \
|
const struct sensors_sensor *sensors[] = {__VA_ARGS__, NULL}; \
|
||||||
unsigned char sensors_flags[SENSORS_NUM];
|
unsigned char sensors_flags[SENSORS_NUM]
|
||||||
|
|
||||||
struct sensors_sensor {
|
struct sensors_sensor {
|
||||||
char * type;
|
char * type;
|
||||||
|
|
Loading…
Reference in a new issue