CLuaInstance: Fix and unified script function calls

- No api changes, code only


Origin commit data
------------------
Branch: ni/coolstream
Commit: 9e331ee4e3
Author: Michael Liebmann <tuxcode.bbg@gmail.com>
Date: 2015-12-23 (Wed, 23 Dec 2015)



------------------
This commit was generated by Migit
This commit is contained in:
Michael Liebmann
2015-12-23 06:41:47 +01:00
parent 8b692d788c
commit 4fcf18bad8
12 changed files with 259 additions and 231 deletions

View File

@@ -173,6 +173,8 @@ Example:
#define CURL_MSG_ERROR "[curl:download \33[1;31mERROR!\33[0m]"
lua_assert(lua_istable(L,1));
CLuaCurl *D = CurlCheckData(L, 1);
if (!D) return 0;
char errMsg[1024];
CURL *curl_handle = curl_easy_init();
@@ -359,6 +361,7 @@ Example:
int CLuaInstCurl::CurlDelete(lua_State *L)
{
CLuaCurl *D = CurlCheckData(L, 1);
if (!D) return 0;
delete D;
return 0;
}