|
| 1 | +# Use |
| 2 | +# @warnpcfail precompile(args...) |
| 3 | +# if you want to be warned when a precompile directive fails |
| 4 | +macro warnpcfail(ex::Expr) |
| 5 | + modl = __module__ |
| 6 | + file = __source__.file === nothing ? "?" : String(__source__.file) |
| 7 | + line = __source__.line |
| 8 | + quote |
| 9 | + $(esc(ex)) || @warn """precompile directive |
| 10 | + $($(Expr(:quote, ex))) |
| 11 | + failed. Please report an issue in $($modl) (after checking for duplicates) or remove this directive.""" _file=$file _line=$line |
| 12 | + end |
| 13 | +end |
| 14 | + |
| 15 | + |
1 | 16 | function _precompile_()
|
2 | 17 | ccall(:jl_generating_output, Cint, ()) == 1 || return nothing
|
3 |
| - Base.precompile(Tuple{Core.kwftype(typeof(AcuteML.render2file)),NamedTuple{(:id, :age, :field, :GPA, :courses),Tuple{Int64,Int64,String,Float64,Array{String,1}}},typeof(render2file),String,Bool}) |
4 |
| - Base.precompile(Tuple{typeof(AcuteML.aml_create),Expr,Array{Union{Expr, Symbol},1},Array{Any,1},Array{Union{Expr, Symbol, Type},1},Array{Union{Expr, Symbol},1},Array{Union{Missing, String},1},Array{Union{Missing, Function, Symbol},1},Array{Union{Missing, Type},1},String,Type{T} where T,Array{Union{Missing, Function, Symbol},0},Bool,Array{Union{Nothing, Expr},1},Array{Union{Nothing, Expr},1},Array{Union{Nothing, Expr},1},Expr}) |
5 |
| - Base.precompile(Tuple{typeof(AcuteML.aml_create),Expr,Array{Union{Expr, Symbol},1},Array{Any,1},Array{Union{Expr, Symbol, Type},1},Array{Union{Expr, Symbol},1},Array{Union{Missing, String},1},Array{Union{Missing, Function, Symbol},1},Array{Union{Missing, Type},1},String,Type{T} where T,Array{Union{Missing, Function, Symbol},0},Bool,Array{Union{Nothing, Expr},1},Array{Union{Nothing, Expr},1},Array{Union{Nothing, Expr},1},Symbol}) |
6 |
| - Base.precompile(Tuple{typeof(AcuteML.aml_parse),Expr}) |
7 |
| - Base.precompile(Tuple{typeof(AcuteML.get_struct_xmlcreator),Expr,Array{Any,1},Array{Union{Expr, Symbol},1},Nothing,Expr,Array{Expr,1},Array{Expr,1},Nothing}) |
8 |
| - Base.precompile(Tuple{typeof(AcuteML.multiString),Array{String,1}}) |
| 18 | + Base.precompile(Tuple{Core.kwftype(typeof(render2file)),NamedTuple{(:id, :age, :field, :GPA, :courses),Tuple{Int64,Int64,String,Float64,Array{String,1}}},typeof(render2file),String,Bool}) |
9 | 19 | Base.precompile(Tuple{typeof(addnode!),Node,String,Node,Type{AbsNormal}})
|
| 20 | + Base.precompile(Tuple{typeof(aml_create),Expr,Array{Union{Expr, Symbol},1},Array{Any,1},Array{Union{Expr, Symbol, Type},1},Array{Union{Expr, Symbol},1},Array{Union{Missing, String},1},Array{Union{Missing, Function, Symbol},1},Array{Union{Missing, Type},1},String,Type{T} where T,Array{Union{Missing, Function, Symbol},0},Bool,Array{Union{Nothing, Expr},1},Array{Union{Nothing, Expr},1},Array{Union{Nothing, Expr},1},Expr}) |
| 21 | + Base.precompile(Tuple{typeof(aml_create),Expr,Array{Union{Expr, Symbol},1},Array{Any,1},Array{Union{Expr, Symbol, Type},1},Array{Union{Expr, Symbol},1},Array{Union{Missing, String},1},Array{Union{Missing, Function, Symbol},1},Array{Union{Missing, Type},1},String,Type{T} where T,Array{Union{Missing, Function, Symbol},0},Bool,Array{Union{Nothing, Expr},1},Array{Union{Nothing, Expr},1},Array{Union{Nothing, Expr},1},Symbol}) |
| 22 | + Base.precompile(Tuple{typeof(aml_parse),Expr}) |
10 | 23 | Base.precompile(Tuple{typeof(findcontent),Type{Array{Float64,1}},String,Node,Type{AbsNormal}})
|
11 | 24 | Base.precompile(Tuple{typeof(findcontent),Type{Array{Int64,1}},String,Node,Type{AbsNormal}})
|
| 25 | + Base.precompile(Tuple{typeof(get_struct_xmlcreator),Expr,Array{Any,1},Array{Union{Expr, Symbol},1},Nothing,Expr,Array{Expr,1},Array{Expr,1},Nothing}) |
| 26 | + Base.precompile(Tuple{typeof(multiString),Array{String,1}}) |
12 | 27 | Base.precompile(Tuple{typeof(updatecontent!),Array{Any,1},String,Node,Type{AbsNormal}})
|
13 | 28 | Base.precompile(Tuple{typeof(updatecontent!),Dict{String,String},String,Node,Type{AbsNormal}})
|
14 | 29 | end
|
0 commit comments