Skip to content

Commit e799654

Browse files
committed
func
1 parent a5127fd commit e799654

3 files changed

Lines changed: 12 additions & 1 deletion

File tree

CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -724,6 +724,7 @@ src/simulate/debug_print.cpp
724724

725725
SET(RUNTIME_EXTRA_SRC
726726
src/ast/ast.cpp
727+
src/ast/ast_function.cpp
727728
src/ast/ast_aot_cpp.cpp
728729
src/ast/ast_interop.cpp
729730
src/ast/ast_tls.cpp

include/daScript/ast/ast_typedecl.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -691,7 +691,7 @@ namespace das {
691691
string das_to_cppCTypeString ( Type t );
692692
string aotModuleName ( Module * pm );
693693
string aotStructName ( Structure * st );
694-
string DAS_RT_API describeCppTypeEx ( const smart_ptr_raw<TypeDecl> & type,
694+
string DAS_RT_API describeCppTypeEx ( const TypeDecl *type,
695695
CpptSubstitureRef substituteRef,
696696
CpptSkipRef skipRef,
697697
CpptSkipConst skipConst,

src/ast/ast_typedecl.cpp

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3930,6 +3930,16 @@ namespace das
39303930
{ Type::tVariant, "Variant" }
39313931
};
39323932

3933+
string aotModuleName ( Module * pm ) {
3934+
if ( pm->name.empty() ) {
3935+
return "";
3936+
} else if ( pm->name=="$" ) {
3937+
return "_builtin_";
3938+
} else {
3939+
return pm->name;
3940+
}
3941+
}
3942+
39333943
string das_to_cppString ( Type t ) {
39343944
return g_cppTypeTable.find(t);
39353945
}

0 commit comments

Comments
 (0)