[ SOLVED ] setting JUCE_ENABLE_LIVE_CONSTANT_EDITOR to 0


#1

i'd like to be able to switch JUCE_ENABLE_LIVE_CONSTANT_EDITOR off sometimes while still in DEBUG mode.

 

where can i insert some macro code to do this without altering juce header files ? 

is the only place/way to do this to edit the juce_gui_extra.h file ? 

 


#2

ah just put it in juceheader.h above the includes and sorted

 

#define JUCE_ENABLE_LIVE_CONSTANT_EDITOR 0

 

#include "AppConfig.h"

#include "modules/juce_audio_basics/juce_audio_basics.h"

#include "modules/juce_audio_devices/juce_audio_devices.h"

#include "modules/juce_audio_formats/juce_audio_formats.h"

#include "modules/juce_audio_processors/juce_audio_processors.h"

#include "modules/juce_audio_utils/juce_audio_utils.h"

#include "modules/juce_core/juce_core.h"

#include "modules/juce_cryptography/juce_cryptography.h"

#include "modules/juce_data_structures/juce_data_structures.h"

#include "modules/juce_events/juce_events.h"

#include "modules/juce_graphics/juce_graphics.h"

#include "modules/juce_gui_basics/juce_gui_basics.h"

#include "modules/juce_gui_extra/juce_gui_extra.h"

#include "modules/juce_opengl/juce_opengl.h"

#include "modules/juce_video/juce_video.h"