diff options
| author | ruki <[email protected]> | 2021-07-20 22:35:50 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2021-07-20 22:35:50 +0800 |
| commit | 4451461655f1f725aa1667a9287fb9a0367c291b (patch) | |
| tree | 734492d821ceff669988ce946e81560d3b61d0d7 /xmake/languages/c++/api.lua | |
| parent | 4061f4d6627358f188bf00778fe296c967b9593e (diff) | |
remove some deprecated apis
Diffstat (limited to 'xmake/languages/c++/api.lua')
| -rw-r--r-- | xmake/languages/c++/api.lua | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/xmake/languages/c++/api.lua b/xmake/languages/c++/api.lua index e3e8e7041..e33580fc4 100644 --- a/xmake/languages/c++/api.lua +++ b/xmake/languages/c++/api.lua @@ -26,8 +26,6 @@ -- sigsetjmp{int a = 0; sigsetjmp((void*)a, a);} -- function _funcinfo(func) - - -- parse name and code local name, code = string.match(func, "(.+){(.+)}") if code == nil then local pos = func:find("%(") @@ -39,8 +37,6 @@ function _funcinfo(func) code = string.format("volatile void* p%s = (void*)&%s;", name, name) end end - - -- ok return name:trim(), code end @@ -90,8 +86,7 @@ end -- TODO add c functions, deprecated function _api_add_cfuncs(interp, module, links, includes, ...) - - -- done + wprint("target.add_cfuncs is deprecated, please use option.add_cfuncs()") for _, func in ipairs({...}) do _api_add_cfunc(interp, module, nil, links, includes, func) end @@ -143,8 +138,7 @@ end -- TODO add c++ functions, deprecated function _api_add_cxxfuncs(interp, module, links, includes, ...) - - -- done + wprint("target.add_cxxfuncs is deprecated, please use option.add_cxxfuncs()") for _, func in ipairs({...}) do _api_add_cxxfunc(interp, module, nil, links, includes, func) end |
