Eat a lot of bananas. This will soften the passage of glass and pass smoothly through your guts. If your luck is good, it can even pass in stool. Check every stool till 48 hours. If the glass is pointed, large or sharp, please consult gastroenterologist who can do enooscopy. Sometimes plain xray also shows exact location in guts.