Пример #1
0
void beGood(ios& i) {
	if(!i.good()) {
		printf("File I/O error in '%s'\n", (char*)i.pword(IOS_NAME_INDEX));
		exit(1);
	}
}
Пример #2
0
void setName(ios& i, const char* name) {
	i.pword(IOS_NAME_INDEX) = (void*)name;
}