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