translate-c: more complex logic for translating a C cast in a macro

This commit is contained in:
Andrew Kelley
2017-12-08 12:28:21 -05:00
parent 182cf5b8de
commit 3577a80bb6
5 changed files with 46 additions and 9 deletions

View File

@@ -55,6 +55,10 @@ static PackageTableEntry *new_package(const char *root_src_dir, const char *root
return entry;
}
PackageTableEntry *new_anonymous_package(void) {
return new_package("", "");
}
CodeGen *codegen_create(Buf *root_src_path, const ZigTarget *target, OutType out_type, BuildMode build_mode,
Buf *zig_lib_dir)
{