Add const to trait vtable.

This commit is contained in:
H. Utku Maden 2024-03-24 12:37:16 +03:00
parent 1bb9a9cff7
commit 66eb6d8f68

@ -113,7 +113,7 @@
* @brief Define the fat pointer structure. * @brief Define the fat pointer structure.
* @param base Base pointer type * @param base Base pointer type
*/ */
#define fatptr_define(trait) fatptr_t(trait) { void *ptr; trait *traits; } #define fatptr_define(trait) fatptr_t(trait) { void *ptr; const trait *traits; }
/** /**
* Fat pointer vtable for object #type for traits #trait * Fat pointer vtable for object #type for traits #trait