CLuaInstance: Fix and unified script function calls

- No api changes, code only
This commit is contained in:
M. Liebmann
2015-12-23 06:41:47 +01:00
parent 59261b1cf6
commit 9e331ee4e3
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;
}