/* method: setDataRootDirectory of class Global */ static int tolua_LuaAPI_Global_setDataRootDirectory00(lua_State* tolua_S) { #ifndef TOLUA_RELEASE tolua_Error tolua_err; if ( !tolua_isusertype(tolua_S,1,"Global",0,&tolua_err) || !tolua_isstring(tolua_S,2,0,&tolua_err) || !tolua_isnoobj(tolua_S,3,&tolua_err) ) goto tolua_lerror; else #endif { Global* self = (Global*) tolua_tousertype(tolua_S,1,0); const char* s = ((const char*) tolua_tostring(tolua_S,2,0)); #ifndef TOLUA_RELEASE if (!self) tolua_error(tolua_S,"invalid 'self' in function 'setDataRootDirectory'",NULL); #endif { self->setDataRootDirectory(s); } } return 0; #ifndef TOLUA_RELEASE tolua_lerror: tolua_error(tolua_S,"#ferror in function 'setDataRootDirectory'.",&tolua_err); return 0; #endif }