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
646 B

  1. //
  2. // FLEXObjcInternal.h
  3. // FLEX
  4. //
  5. // Created by Tanner Bennett on 11/1/18.
  6. //
  7. #import <Foundation/Foundation.h>
  8. #ifdef __cplusplus
  9. extern "C" {
  10. #endif
  11. /// @brief Assumes memory is valid and readable.
  12. /// @discussion objc-internal.h, objc-private.h, and objc-config.h
  13. /// https://blog.timac.org/2016/1124-testing-if-an-arbitrary-pointer-is-a-valid-objective-c-object/
  14. /// http://llvm.org/svn/llvm-project/lldb/trunk/examples/summaries/cocoa/objc_runtime.py
  15. /// https://blog.timac.org/2016/1124-testing-if-an-arbitrary-pointer-is-a-valid-objective-c-object/
  16. BOOL FLEXPointerIsValidObjcObject(const void * ptr);
  17. #ifdef __cplusplus
  18. }
  19. #endif