Add padding to StringUpdate struct
This commit is contained in:
parent
cd78913e83
commit
a85508e0a4
@ -3,6 +3,8 @@
|
|||||||
|
|
||||||
#include "aliases.h"
|
#include "aliases.h"
|
||||||
#include "mem_arena.h"
|
#include "mem_arena.h"
|
||||||
|
#include "misc_utils.h"
|
||||||
|
#include "platform.h"
|
||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
@ -13,8 +15,12 @@ typedef struct dstr String;
|
|||||||
|
|
||||||
typedef struct string_update StringUpdate;
|
typedef struct string_update StringUpdate;
|
||||||
struct string_update {
|
struct string_update {
|
||||||
bool updated;
|
|
||||||
String *str;
|
String *str;
|
||||||
|
bool updated;
|
||||||
|
|
||||||
|
#ifdef WAPP_PLATFORM_WINDOWS
|
||||||
|
wapp_misc_utils_padding_size(sizeof(bool) + sizeof(String *));
|
||||||
|
#endif // WAPP_PLATFORM_WINDOWS
|
||||||
};
|
};
|
||||||
|
|
||||||
String *wapp_dstr_with_capacity(u64 capacity, Arena *arena);
|
String *wapp_dstr_with_capacity(u64 capacity, Arena *arena);
|
||||||
|
Loading…
Reference in New Issue
Block a user