From 0a71ffa31bc0d30ab3f807253d0122b784714899 Mon Sep 17 00:00:00 2001 From: ruki Date: Tue, 28 Jan 2020 23:33:29 +0800 Subject: add process:cproc --- xmake/core/base/process.lua | 5 +++++ xmake/core/base/socket.lua | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/xmake/core/base/process.lua b/xmake/core/base/process.lua index 65be506a9..68d02466b 100644 --- a/xmake/core/base/process.lua +++ b/xmake/core/base/process.lua @@ -53,6 +53,11 @@ function _subprocess:name() return self._NAME end +-- get cdata of process +function _subprocess:cproc() + return self._PROC +end + -- wait subprocess -- -- @param timeout the timeout diff --git a/xmake/core/base/socket.lua b/xmake/core/base/socket.lua index a20271ac2..1fe895c20 100644 --- a/xmake/core/base/socket.lua +++ b/xmake/core/base/socket.lua @@ -65,7 +65,7 @@ function _instance:family() return self._FAMILY end --- get cdata socket +-- get cdata of socket function _instance:csock() return self._SOCK end -- cgit v1.3.1