@typesol/cli 0.48.0 → 0.49.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -77,7 +77,8 @@ static __attribute__((noinline)) uint64_t ts_fail(uint64_t code, const char *msg
77
77
  #ifdef TS_PANIC_ON_OVERFLOW
78
78
  /* PANIC_ON_OVERFLOW: arithmetic fails as a Rust `checked_*().unwrap()` does, with a panic (ProgramFailedToComplete). */
79
79
  #ifdef TS_PANIC_ABORT
80
- /* PANIC_STYLE "solana-1.14": a panic ends in the abort syscall ("SBF program panicked"), as that panic handler's. */
80
+ /* PANIC_STYLE "solana-1.14" or "solana-1.18" (with PANIC_ON_OVERFLOW): a panic ends in the abort syscall ("SBF
81
+ * program panicked"), as those solana_program panic handlers' do. */
81
82
  if (code == TS_ERR_OVERFLOW || code == TS_ERR_DIV_ZERO) abort();
82
83
  #else
83
84
  if (code == TS_ERR_OVERFLOW || code == TS_ERR_DIV_ZERO) sol_panic_("", 0, 0, 0);