C utilities library (C utes)
Go to file
Sara b38362c2aa feat: added list_set_len
to set the length of the array
2024-01-26 11:49:49 +01:00
.gitignore feat: added gitignore 2024-01-25 14:08:00 +01:00
README.md feat: added readme 2024-01-25 14:33:30 +01:00
debug.c feat: added code 2024-01-25 14:08:23 +01:00
debug.h feat: added code 2024-01-25 14:08:23 +01:00
dictionary.c feat: added code 2024-01-25 14:08:23 +01:00
dictionary.h feat: added code 2024-01-25 14:08:23 +01:00
drop.c feat: added Drop trait 2024-01-25 14:13:42 +01:00
drop.h feat: added Drop trait 2024-01-25 14:13:42 +01:00
list.c feat: added list_set_len 2024-01-26 11:49:49 +01:00
list.h feat: added list_set_len 2024-01-26 11:49:49 +01:00
mirror.c feat: added code 2024-01-25 14:08:23 +01:00
mirror.h feat: added code 2024-01-25 14:08:23 +01:00
strutil.c feat: added code 2024-01-25 14:08:23 +01:00
strutil.h feat: added code 2024-01-25 14:08:23 +01:00
typeclass_helpers.h feat: added code 2024-01-25 14:08:23 +01:00
variant.c feat: variant now uses mirror and drop to manage objects 2024-01-25 14:14:18 +01:00
variant.h feat: variant now uses mirror and drop to manage objects 2024-01-25 14:14:18 +01:00
vmath.h feat: added code 2024-01-25 14:08:23 +01:00

README.md

SARA'S C UTILITIES (C UTES)

A collection of utilities I keep copying around/reimplementing for various C projects.

utilities:

  • debug: some debug logging and assertion macros using stdio.
  • typeclass_helpers: macros to help with typeclasses.
  • mirror: a mirror typeclass that uses macros to enable casting typeclass instances to other typeclass instances.
  • drop: a drop typeclass to destroy objects.
  • variant: a variant struct, mainly useful in combination with dictionaries for (de-)serialization
  • vmath: float and int vector math
  • strutil: some string utilities
  • list: a heap-allocated dynamically sized list.
  • dictionary: a heap-allocated string-key hashmap.