SUPER hard to find bug. DISASTEROUS

main
Cameron Murphy Reikes 2 years ago
parent 280001840b
commit dcac22446e

@ -653,7 +653,7 @@ void ser_var(SerState* ser, char* var_pointer, size_t var_size, const char* name
} }
} }
#define SER_VAR_NAME(var_pointer, name) ser_var(ser, (char*)var_pointer, sizeof(var_pointer), name, __FILE__, __LINE__) #define SER_VAR_NAME(var_pointer, name) ser_var(ser, (char*)var_pointer, sizeof(*var_pointer), name, __FILE__, __LINE__)
#define SER_VAR(var_pointer) SER_VAR_NAME(var_pointer, #var_pointer) #define SER_VAR(var_pointer) SER_VAR_NAME(var_pointer, #var_pointer)
void ser_V2(SerState* ser, V2* var) void ser_V2(SerState* ser, V2* var)

Loading…
Cancel
Save