add inlining API.
This commit is contained in:
parent
65a69d6546
commit
962f1e5a2d
@ -466,6 +466,18 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
api.register {
|
||||||
|
name = "inlining",
|
||||||
|
scope = "config",
|
||||||
|
kind = "string",
|
||||||
|
allowed = {
|
||||||
|
"Default",
|
||||||
|
"Disabled",
|
||||||
|
"Explicit",
|
||||||
|
"Implicit"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
api.register {
|
api.register {
|
||||||
name = "callingconvention",
|
name = "callingconvention",
|
||||||
scope = "config",
|
scope = "config",
|
||||||
|
@ -318,6 +318,7 @@
|
|||||||
m.bufferSecurityCheck,
|
m.bufferSecurityCheck,
|
||||||
m.treatWChar_tAsBuiltInType,
|
m.treatWChar_tAsBuiltInType,
|
||||||
m.floatingPointModel,
|
m.floatingPointModel,
|
||||||
|
m.inlineFunctionExpansion,
|
||||||
m.enableEnhancedInstructionSet,
|
m.enableEnhancedInstructionSet,
|
||||||
m.multiProcessorCompilation,
|
m.multiProcessorCompilation,
|
||||||
m.additionalCompileOptions,
|
m.additionalCompileOptions,
|
||||||
@ -1125,6 +1126,17 @@
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
function m.inlineFunctionExpansion(cfg)
|
||||||
|
if cfg.inlining then
|
||||||
|
local types = {
|
||||||
|
Default = "Default",
|
||||||
|
Disabled = "Disabled",
|
||||||
|
Explicit = "OnlyExplicitInline",
|
||||||
|
Implicit = "AnySuitable",
|
||||||
|
}
|
||||||
|
p.w('<InlineFunctionExpansion>%s</InlineFunctionExpansion>', types[cfg.inlining])
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
function m.forceIncludes(cfg, condition)
|
function m.forceIncludes(cfg, condition)
|
||||||
if #cfg.forceincludes > 0 then
|
if #cfg.forceincludes > 0 then
|
||||||
|
Reference in New Issue
Block a user