Exemple #1
0
        public static void ApplyDirectivesInOrderToCurrentSettings(ISettings settings)
        {
            var directives = new PreprocessorDirectives();

            directives.add("ONE_LINE_DISABLED", !settings.Enabled);
            directives.add("ONE_LINE_VERTICAL_SEPARATOR_DISABLE", !settings.DrawVerticalSeparator);
            directives.add("ONE_LINE_HORIZONTAL_SEPARATOR_DISABLE", !settings.DrawHorizontalSeparator);
            directives.add("ONE_LINE_EXPANDABLE_DISABLE", !settings.Expandable);
            directives.add("ONE_LINE_CUSTOM_DRAWER_DISABLE", !settings.CustomDrawer);

            directives.DefineForCurrentBuildTarget();
        }
Exemple #2
0
        public static void ApplyDirectiveDefaultsOnly(bool defaultOnly)
        {
            var directives = new PreprocessorDirectives();

            directives.add("ONE_LINE_DEFAULTS_ONLY", defaultOnly);
            directives.DefineForCurrentBuildTarget();
        }