checkErrorPointer static method

void checkErrorPointer(
  1. ObjectPtr pointer
)

Implementation

static void checkErrorPointer(ObjectPtr pointer) {
  if (pointer.address != 0) {
    throw NSErrorException(
      objc.NSError.fromPointer(pointer, retain: true, release: true),
    );
  }
}