NEW YORK (CBSNewYork/AP) — Actor-director Kevin Smith says he had a “massive” heart attack after performing at a Los Angeles comedy show Sunday night.

Smith said on Twitter early Monday morning that if he hadn’t canceled his second show Sunday and gone to the hospital, he would have died.

READ MORE: Suffolk Police: Man Killed In Hit-And-Run On Long Island Expressway In Brentwood

Smith credited a doctor with saving his life after the 47-year-old Red Banks, N.J., native and “Clerks” filmmaker suffered a total blockage of his left coronary artery, often referred to as “the widow maker.”

READ MORE: NYPD: Delivery Worker Stabbed To Death, E-Bike Stolen Near Sara D. Roosevelt Park

Smith posted a photo of himself lying in a hospital bed looking stunned. He added: “For now, I’m still above ground.”

Representatives for Smith didn’t immediately return messages Monday.

MORE NEWS: Gabby Petito Foundation Holds Fundraiser On Long Island

(© Copyright 2018 CBS Broadcasting Inc. All Rights Reserved. The Associated Press contributed to this report.)