This commit is contained in:
Timerix 2024-07-22 21:44:56 +03:00
parent 606875b498
commit 9cc2fd7814

View File

@ -2,6 +2,7 @@
#include <string.h>
#include <stdbool.h>
#include <stdlib.h>
#include <stdint.h>
// the program writes generated text to stdout
// other messages must be sent to stderr
@ -120,11 +121,12 @@ void process_file(const char* input_file_path,
free(_sp1);
fprintf(out_file,
"#pragma once\n"
"#include <stdint.h>\n"
"\n"
"typedef struct {\n"
" const char* path;\n"
" const char* data;\n"
" const unsigned long long size;\n"
" int32_t size;\n"
"} EmbeddedResource;\n"
"\n"
"#define RSCAT(A,B,C...) A##B##C"