Getting old

My old boy cat is getting thin. He is on medication for his heart, but that seems to be making him thinner. I don’t know his actual age because he was a rescue cat about 8 years ago. I didn’t find out his age then but he was fully grown. I’m having to accept he won’t be around for much longer. I’m giving him him lots of treats. He’s getting small meals but as often as he wants. I can’t make him eat but I can try and tempt him. At least he can sit in the sun if he wants.