Jinoh Kang (@iamahuman) commented about server/queue.c:
static cursor_pos_t cursor_history[64]; static unsigned int cursor_history_latest;
+#if defined(__i386__) || defined(__x86_64__)
+#define SHARED_WRITE_BEGIN( object, type ) \
- do { \
type *shared = (type *)(object)->shared; \
If we can't use `typeof`, it might be a good idea to assert that the type matches. Something like:
```c (void)sizeof((object) - (type *)(object)); ```
If `__GCC__` is defined:
```c C_ASSERT(__builtin_types_compatible_p(typeof(object), type *)); ```