vptr.h 329 B

123456789101112131415161718192021
  1. #ifndef TOOLBOX_VPTR_H
  2. #define TOOLBOX_VPTR_H
  3. #include <stdbool.h>
  4. #include <stddef.h>
  5. #ifdef TOOLBOX_TYPEDEF
  6. typedef struct vptr vptr_st;
  7. #endif
  8. struct vptr {
  9. size_t size;
  10. void *data;
  11. };
  12. __attribute__((__pure__))
  13. bool
  14. vptr_equal(const struct vptr *restrict r_p_vptr1
  15. , const struct vptr *restrict r_p_vptr2);
  16. #endif