Did the hospital have to take into consideration of when you last ate before they performed the c section? Did they just do it and hope for the best, or did they have to wait for your stomach to clear?

I was told not to eat 8 hours before my scheduled time. But, what if I eat and then go into labor? I need the section, because of a breech baby (and other reasons most of you know), but I don't want to have to labor just because I ate.

Obviously, I'm not going to not eat just cause of this reason, but I am just curious to what other's experiences are?