docs: function declareResultCode(base, moduleCode, message, succeeded) {
          if (succeeded === void 0) { succeeded = false; }
          if (moduleCode <= 0 || CDP.MODULE_RESULT_CODE_RANGE <= moduleCode) {
              console.error("declareResultCode(), invalid localCode range. [localCode: " + moduleCode + "]");
              return;
          }
          var signed = succeeded ? 1 : -1;
          var resultCode = signed * (base + moduleCode);
          s_code2message[resultCode] = message ? message : ("[RESULT_CODE: " + resultCode + "]");
          return resultCode;
      }