* @param debug
   * @param speed
   * @param space
   */
  public static void setOptimizationLevels(int safety, int debug, int speed, int space) {
    if ((safety != Stella.NULL_INTEGER) &&
        ((safety >= 0) &&
         (safety <= 3))) {
      Native.setIntSpecial(Stella.$SAFETY$, safety);
    }
    if ((debug != Stella.NULL_INTEGER) &&
        ((debug >= 0) &&
         (debug <= 3))) {
      Native.setIntSpecial(Stella.$DEBUGLEVEL$, debug);
    }
    if ((speed != Stella.NULL_INTEGER) &&
        ((speed >= 0) &&
         (speed <= 3))) {
      Native.setIntSpecial(Stella.$OPTIMIZESPEEDLEVEL$, speed);
    }
    if ((space != Stella.NULL_INTEGER) &&
        ((space >= 0) &&
         (space <= 3))) {
      Native.setIntSpecial(Stella.$OPTIMIZESPACELEVEL$, space);
    }
  }