mt_embed_file

This commit is contained in:
Krzosa Karol
2025-01-18 10:09:10 +01:00
parent 7e52440e18
commit 2e445d2592
12 changed files with 1761 additions and 63 deletions

View File

@@ -157,6 +157,7 @@ void *sbin_read_data(stream_t *stream, i64 size);
// other
#define s8_fmtspec(string) (int)(string).len, (string).str
#define s8_struct(DATA) (s8_t){.str = (char *)&(DATA), .len = sizeof(DATA)}
#define s8_array(DATA) (s8_t){.str = (char *)(DATA), .len = lengthof(DATA)}
#define S8_CODE(...) s8_lit(#__VA_ARGS__)
#define S8_FILE s8_lit(__FILE__)
#define S8_FILE_AND_LINE s8_lit(FILE_AND_LINE)