static int pyPageInfo_setLocation(pyPageInfo* self, PyObject* value, void*) { if (value == NULL) { self->fThis->setLocation(plLocation()); } else { if (!pyLocation_Check(value)) { PyErr_SetString(PyExc_TypeError, "location must be a plLocation"); return -1; } self->fThis->setLocation(*((pyLocation*)value)->fThis); } return 0; }
plLocation plLocation::MakeNormal(uint32_t number) { return plLocation(kNormalLocStartIdx + number); }
plLocation plLocation::MakeReserved(uint32_t number) { return plLocation(kReservedLocAvailableStart + number, kReserved); }