C++ preprocessor #if Indents [message #1720490] |
Mon, 18 January 2016 17:35  |
Eclipse User |
|
|
|
is there a way to make the auto styling feature of eclipse C/C++ IDE format preprocesors if statements like:
#ifdef ARDUINO
#if ARDUINO < 100
#include "WProgram.h"
#else
#include "Arduino.h"
#endif
#if defined(CORE_TEENSY) && defined(__MK20DX256__)
#include <i2c_t3.h>
#define BUFFER_LENGTH 32
#elif I2CDEV_IMPLEMENTATION == I2CDEV_ARDUINO_WIRE
#include <Wire.h>
#endif
#if I2CDEV_IMPLEMENTATION == I2CDEV_I2CMASTER_LIBRARY
#include <I2C.h>
#endif
#endif
instead of :
#ifdef ARDUINO
#if ARDUINO < 100
#include "WProgram.h"
#else
#include "Arduino.h"
#endif
#if defined(CORE_TEENSY) && defined(__MK20DX256__)
#include <i2c_t3.h>
#define BUFFER_LENGTH 32
#elif I2CDEV_IMPLEMENTATION == I2CDEV_ARDUINO_WIRE
#include <Wire.h>
#endif
#if I2CDEV_IMPLEMENTATION == I2CDEV_I2CMASTER_LIBRARY
#include <I2C.h>
#endif
#endif
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04845 seconds