summaryrefslogtreecommitdiff
path: root/xmake/modules/lib
diff options
context:
space:
mode:
authorruki <[email protected]>2017-07-05 20:48:55 +0800
committerruki <[email protected]>2017-07-05 20:48:55 +0800
commit6e0271d2e38f9b4d48ec271af225f71a0faa4f49 (patch)
tree3411187f6d73ad5d0e254aa9d681ea94e7ce9915 /xmake/modules/lib
parenta8d5da851d1d469587adea086c65d61ae20c50ef (diff)
rename has_cxsnippets to check_vxsnippets
Diffstat (limited to 'xmake/modules/lib')
-rw-r--r--xmake/modules/lib/detect/check_cxsnippets.lua (renamed from xmake/modules/lib/detect/has_cxsnippets.lua)8
1 files changed, 4 insertions, 4 deletions
diff --git a/xmake/modules/lib/detect/has_cxsnippets.lua b/xmake/modules/lib/detect/check_cxsnippets.lua
index 59ef12872..812d55c08 100644
--- a/xmake/modules/lib/detect/has_cxsnippets.lua
+++ b/xmake/modules/lib/detect/check_cxsnippets.lua
@@ -19,7 +19,7 @@
-- Copyright (C) 2015 - 2017, TBOOX Open Source Group.
--
-- @author ruki
--- @file has_csnippets.lua
+-- @file check_cxsnippets.lua
--
-- imports
@@ -113,7 +113,7 @@ function _sourcecode(snippets, opt)
return sourcecode
end
--- has the given c snippets?
+-- check the given c snippets?
--
-- @param snippets the snippets
-- @param opt the argument options
@@ -130,8 +130,8 @@ end
-- @return true or false
--
-- @code
--- local ok = has_csnippets("void test() {}")
--- local ok = has_csnippets({"void test(){}", "#define TEST 1"}, {types = "wchar_t", includes = "stdio.h"})
+-- local ok = check_cxsnippets("void test() {}")
+-- local ok = check_cxsnippets({"void test(){}", "#define TEST 1"}, {types = "wchar_t", includes = "stdio.h"})
-- @endcode
--
function main(snippets, opt)