starting to draft out gen_c11.c

This commit is contained in:
ed
2025-02-10 17:07:11 -05:00
parent e07d7dbc2b
commit b989bece73
5 changed files with 464 additions and 22 deletions
+11 -7
View File
@@ -1,21 +1,25 @@
#pragma once
#include "third_party/gencpp_c11/push_ignores.inline.h"
#include "gen_common.h"
#define GEN_DONT_ENFORCE_GEN_TIME
#define GEN_DEFINE_LIBRARY_CODE_CONSTANTS
#define GEN_ENFORCE_STRONG_CODE_TYPES
#define GEN_IMPLEMENTATION
#include "third_party/gencpp_c11/gencpp_c11.h"
#define path_refactor_script "./c11.refactor"
#include "third_party/gencpp_c11/misc.h"
gen_Code refactor( gen_Code code ) {
return code_refactor_and_format(code, scratch_file, path_refactor_script, nullptr );
}
gen_Code refactor_and_format( gen_Code code ) {
return code_refactor_and_format(code, scratch_file, path_refactor_script, path_format_style );
}
int main()
{
gen_Context ctx = {0};
gen_init(& ctx);
register_library_macros();
// gen_deinit(& ctx);
return 0;
}