Finished FnDef TypeInfo generation (warning: may be buggy).

This commit is contained in:
Alexandros Naskos
2018-04-29 15:40:26 +03:00
parent 66aa760f83
commit 013f548202
2 changed files with 45 additions and 10 deletions

View File

@@ -6491,12 +6491,12 @@ static void define_builtin_compile_vars(CodeGen *g) {
" is_pub: bool,\n"
" data: Data,\n"
"\n"
" const Data = union(enum) {\n"
" pub const Data = union(enum) {\n"
" Type: type,\n"
" Var: type,\n"
" Fn: FnDef,\n"
"\n"
" const FnDef = struct {\n"
" pub const FnDef = struct {\n"
" fn_type: type,\n"
" inline_type: Inline,\n"
" calling_convention: CallingConvention,\n"
@@ -6504,8 +6504,10 @@ static void define_builtin_compile_vars(CodeGen *g) {
" is_extern: bool,\n"
" is_export: bool,\n"
" lib_name: ?[]const u8,\n"
" return_type: type,\n"
" arg_names: [][] const u8,\n"
"\n"
" const Inline = enum {\n"
" pub const Inline = enum {\n"
" Auto,\n"
" Always,\n"
" Never,\n"