/** * @fileoverview C1Pjs-specific compile-time definitions. * @author Jeff Parsons * @version 1.0 * Created 2014-May-08 * * Copyright © 2012-2016 Jeff Parsons * * This file is part of C1Pjs, which is part of the JavaScript Machines Project (aka JSMachines) * at and . * * C1Pjs is free software: you can redistribute it and/or modify it under the terms of the * GNU General Public License as published by the Free Software Foundation, either version 3 * of the License, or (at your option) any later version. * * C1Pjs is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along with C1Pjs. If not, * see . * * You are required to include the above copyright notice in every source code file of every * copy or modified version of this work, and to display that copyright notice on every screen * that loads or runs any version of this software (see C1PComputer.COPYRIGHT). * * Some C1Pjs files also attempt to load external resource files, such as character-image files, * ROM files, and disk image files. Those external resource files are not considered part of the * C1Pjs program for purposes of the GNU General Public License, and the author does not claim * any copyright as to their contents. */ "use strict"; /** * @define {string} */ var C1PJSCLASS = "c1pjs"; // this @define is the default application class (formerly APPCLASS) to use for C1Pjs /** * @define {boolean} * * WARNING: DEBUGGER needs to accurately reflect whether or not the Debugger component is (or will be) loaded. * In the compiled case, we rely on the Closure Compiler to override DEBUGGER as appropriate. When it's *false*, * nearly all of debugger.js will be conditionally removed by the compiler, reducing it to little more than a * "type skeleton", which also solves some type-related warnings we would otherwise have if we tried to remove * debugger.js from the compilation process altogether. * * However, when we're in "development mode" and running uncompiled code in debugger-less configurations, * I would like to skip loading debugger.js altogether. When doing that, we must ALSO arrange for an additional file * (nodebugger.js) to be loaded immediately after this file, which *explicitly* overrides DEBUGGER with *false*. */ var DEBUGGER = true; // this @define is overridden by the Closure Compiler to remove Debugger-related support