diff options
author | madmaxoft <github@xoft.cz> | 2013-07-29 10:59:10 +0200 |
---|---|---|
committer | madmaxoft <github@xoft.cz> | 2013-07-29 10:59:10 +0200 |
commit | 20e7221c7cc54af13d047306b8b1e6fc2d834f29 (patch) | |
tree | a908285520af56c2bb43fb36c9bba57367c8364a /source/Bindings.cpp | |
parent | Fixed formatting in LuaScript.* (diff) | |
download | cuberite-20e7221c7cc54af13d047306b8b1e6fc2d834f29.tar cuberite-20e7221c7cc54af13d047306b8b1e6fc2d834f29.tar.gz cuberite-20e7221c7cc54af13d047306b8b1e6fc2d834f29.tar.bz2 cuberite-20e7221c7cc54af13d047306b8b1e6fc2d834f29.tar.lz cuberite-20e7221c7cc54af13d047306b8b1e6fc2d834f29.tar.xz cuberite-20e7221c7cc54af13d047306b8b1e6fc2d834f29.tar.zst cuberite-20e7221c7cc54af13d047306b8b1e6fc2d834f29.zip |
Diffstat (limited to '')
-rw-r--r-- | source/Bindings.cpp | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/source/Bindings.cpp b/source/Bindings.cpp index a313ce98d..910b48007 100644 --- a/source/Bindings.cpp +++ b/source/Bindings.cpp @@ -1,6 +1,6 @@ /* ** Lua binding: AllToLua -** Generated automatically by tolua++-1.0.92 on 07/29/13 09:54:50. +** Generated automatically by tolua++-1.0.92 on 07/29/13 10:58:05. */ #ifndef __cplusplus @@ -18883,19 +18883,15 @@ static int tolua_AllToLua_cWebAdmin_GetMemoryUsage00(lua_State* tolua_S) #ifndef TOLUA_RELEASE tolua_Error tolua_err; if ( - !tolua_isusertype(tolua_S,1,"const cWebAdmin",0,&tolua_err) || + !tolua_isusertable(tolua_S,1,"cWebAdmin",0,&tolua_err) || !tolua_isnoobj(tolua_S,2,&tolua_err) ) goto tolua_lerror; else #endif { - const cWebAdmin* self = (const cWebAdmin*) tolua_tousertype(tolua_S,1,0); -#ifndef TOLUA_RELEASE - if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetMemoryUsage'", NULL); -#endif { - AString tolua_ret = (AString) self->GetMemoryUsage(); + AString tolua_ret = (AString) cWebAdmin::GetMemoryUsage(); tolua_pushcppstring(tolua_S,(const char*)tolua_ret); } } |