From 4451461655f1f725aa1667a9287fb9a0367c291b Mon Sep 17 00:00:00 2001 From: ruki Date: Tue, 20 Jul 2021 22:35:50 +0800 Subject: remove some deprecated apis --- xmake/languages/c++/api.lua | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'xmake/languages/c++/api.lua') 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 -- cgit v1.3.1