Add utility to create list node from item
This commit is contained in:
@@ -92,8 +92,8 @@ Str8 *wapp_str8_join(const Allocator *allocator, const DBL_LIST(Str8)
|
||||
/**
|
||||
* Str8 list utilities
|
||||
*/
|
||||
#define wapp_str8_node_from_cstr(STRING) ((DBL_NODE(Str8)){.item = &wapp_str8_lit(STRING)})
|
||||
#define wapp_str8_node_from_str8(STRING) ((DBL_NODE(Str8)){.item = &(STRING)})
|
||||
#define wapp_str8_node_from_cstr(STRING) wapp_dbl_list_node_from_item(Str8, &wapp_str8_lit(STRING))
|
||||
#define wapp_str8_node_from_str8(STRING) wapp_dbl_list_node_from_item(Str8, &(STRING))
|
||||
|
||||
#ifdef __cplusplus
|
||||
END_C_LINKAGE
|
||||
|
Reference in New Issue
Block a user