Skip to content

Commit aee622d

Browse files
authored
Update 2025-11-30-comptime-c-functions.md
1 parent bdef635 commit aee622d

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

_posts/2025-11-30-comptime-c-functions.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ static inline ErrorCode stack_push(stack *s, const void *element) {
5858
if (s->size >= s->capacity) {
5959
return STACK_FULL;
6060
}
61+
// This memcpy() is like assigning a value of *any* type using the = operator
6162
memcpy((unsigned char *)s->data + s->size * s->element_size, element, s->element_size);
6263
s->size++;
6364
return SUCCESS;

0 commit comments

Comments
 (0)