You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
496 B

  1. //
  2. // PEPAutoPointer+Message.m
  3. // PEPObjCAdapterFramework
  4. //
  5. // Created by Dirk Zimmermann on 02.12.20.
  6. // Copyright © 2020 pp. All rights reserved.
  7. //
  8. #import "PEPAutoPointer+Message.h"
  9. @implementation PEPAutoPointer (Message)
  10. + (instancetype)autoPointerWithMessage:(message *)message
  11. {
  12. return [[self alloc] initWithMessage:message];
  13. }
  14. - (instancetype)initWithMessage:(message *)message
  15. {
  16. return [self initWithPointer:message freeFn:(void (*)(void *)) free_message];
  17. }
  18. @end