gallows humor
When you're totally screwed and the only thing keeping you from crying is the fact that you're making someone else laugh. It's like you're the last person on Earth and you're still trying to be funny.
My mom was in the hospital and said, 'I can't wait to see what my doctor's face looks like when he finds out I'm not dying.'
My brother was stuck in a elevator and said, 'I hope this elevator falls and takes me with it.'
During my first day of jail, I told the guard, 'You're lucky I'm not a cop.'