"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.DefinesCreator = void 0;
const magick_define_1 = require("./magick-define");
class DefinesCreator {
    constructor(format) {
        this.format = format;
    }
    createDefine(name, value) {
        if (typeof value === 'boolean')
            return new magick_define_1.MagickDefine(this.format, name, value ? 'true' : 'false');
        if (typeof value === 'string')
            return new magick_define_1.MagickDefine(this.format, name, value);
        return new magick_define_1.MagickDefine(this.format, name, value.toString());
    }
}
exports.DefinesCreator = DefinesCreator;
