From a55db08a7b6326ea0d84f13acd9312d435c10136 Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Mon, 7 Oct 2019 23:53:17 -0400 Subject: generated docs contain generic instantiations and comptime calls --- src/analyze.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/analyze.cpp') 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); -- cgit v1.2.3