diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2019-10-07 23:53:17 -0400 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2019-10-08 00:15:16 -0400 |
| commit | a55db08a7b6326ea0d84f13acd9312d435c10136 (patch) | |
| tree | a04a39fa2ca8c185a697707bb0324a4a188556c5 /src/analyze.cpp | |
| parent | ffc0c26b27b14fbaedc0def018fd962a93e420bc (diff) | |
| download | zig-a55db08a7b6326ea0d84f13acd9312d435c10136.tar.gz zig-a55db08a7b6326ea0d84f13acd9312d435c10136.zip | |
generated docs contain generic instantiations and comptime calls
Diffstat (limited to 'src/analyze.cpp')
| -rw-r--r-- | src/analyze.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/analyze.cpp b/src/analyze.cpp index 38739b56eb..1492d77561 100644 --- a/src/analyze.cpp +++ b/src/analyze.cpp @@ -7328,6 +7328,14 @@ bool node_ptr_eql(const AstNode *a, const AstNode *b) { return a == b; } +uint32_t fn_ptr_hash(const ZigFn *ptr) { + return hash_ptr((void*)ptr); +} + +bool fn_ptr_eql(const ZigFn *a, const ZigFn *b) { + return a == b; +} + ConstExprValue *get_builtin_value(CodeGen *codegen, const char *name) { Tld *tld = get_container_scope(codegen->compile_var_import)->decl_table.get(buf_create_from_str(name)); resolve_top_level_decl(codegen, tld, nullptr, false); |
