summaryrefslogtreecommitdiff
path: root/core/src/xmake/os
diff options
context:
space:
mode:
authorruki <[email protected]>2016-07-31 18:44:06 +0800
committerruki <[email protected]>2016-07-31 18:44:18 +0800
commitde05bd361137a2971875f9ba4d30cea926823913 (patch)
treeae2df01a1b269099795aa992593df38f938a485c /core/src/xmake/os
parent68b869763491ff6eb97085b8536ef1b7c72fd2bd (diff)
try to format errors and add uuid interface
Diffstat (limited to 'core/src/xmake/os')
-rwxr-xr-xcore/src/xmake/os/uuid.c50
1 files changed, 50 insertions, 0 deletions
diff --git a/core/src/xmake/os/uuid.c b/core/src/xmake/os/uuid.c
new file mode 100755
index 000000000..c30d52815
--- /dev/null
+++ b/core/src/xmake/os/uuid.c
@@ -0,0 +1,50 @@
+/*!The Make-like Build Utility based on Lua
+ *
+ * XMake is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU Lesser General Public License as published by
+ * the Free Software Foundation; either version 2.1 of the License, or
+ * (at your option) any later version.
+ *
+ * XMake is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with XMake;
+ * If not, see <a href="http://www.gnu.org/licenses/"> http://www.gnu.org/licenses/</a>
+ *
+ * Copyright (C) 2015 - 2016, ruki All rights reserved.
+ *
+ * @author ruki
+ * @file uuid.c
+ *
+ */
+
+/* //////////////////////////////////////////////////////////////////////////////////////
+ * trace
+ */
+#define TB_TRACE_MODULE_NAME "uuid"
+#define TB_TRACE_MODULE_DEBUG (0)
+
+/* //////////////////////////////////////////////////////////////////////////////////////
+ * includes
+ */
+#include "prefix.h"
+
+/* //////////////////////////////////////////////////////////////////////////////////////
+ * implementation
+ */
+tb_int_t xm_os_uuid(lua_State* lua)
+{
+ // check
+ tb_assert_and_check_return_val(lua, 0);
+
+ // get the name
+ tb_char_t const* name = luaL_checkstring(lua, 1);
+ tb_used(name);
+
+
+ // ok
+ return 1;
+}