#define phi_prompt_max_item_display_length 20
char buffer[phi_prompt_max_item_display_length];
#ifndef phi_prompt_max_item_display_length ///< Only define this if it has not been defined. #define phi_prompt_max_item_display_length 20 ///< The render_list uses a buffer to render list item. 20 works for up to 20x4 displays to save SRAM.#endif
Evidently all great minds run in the same ruts XDhttp://arduino.cc/forum/index.php/topic,92382.msg694031.html#msg694031
Without a make mechanism in arduino, such as define xxx as yyy in the make file, the only way to communicate with another .cpp is at execution time.
template <int length>class Test{ int buffer[length];};void setup(){ Test<20> shortLine; Test<40> longLine; Serial.begin(115200); Serial.println(sizeof(shortLine)); Serial.println(sizeof(longLine));}void loop(){}