vptr.h 300 B

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