no message
This commit is contained in:
parent
66ae5b8e0f
commit
553038694d
@ -80,12 +80,10 @@ void _C_Loger::operator<<(const string& wb){
|
||||
bool file_existed(string path) {
|
||||
fstream _file;
|
||||
_file.open(path.c_str(),ios::in);
|
||||
if(!_file)
|
||||
{
|
||||
if(!_file) {
|
||||
return false;
|
||||
}
|
||||
else
|
||||
{
|
||||
else {
|
||||
_file.close();
|
||||
return true;
|
||||
}
|
||||
|
@ -5,8 +5,7 @@ void LuaDelegate::Stop()
|
||||
|
||||
}
|
||||
|
||||
int LuaDelegate::DoString(std::string scr)
|
||||
{
|
||||
int LuaDelegate::DoString(std::string scr) {
|
||||
if (mVM != nullptr){
|
||||
int ret = luaL_dostring(mVM,scr.c_str());
|
||||
if (ret > 0){
|
||||
@ -18,8 +17,7 @@ int LuaDelegate::DoString(std::string scr)
|
||||
return 0;
|
||||
}
|
||||
|
||||
int LuaDelegate::UpdateScript(std::string scr)
|
||||
{
|
||||
int LuaDelegate::UpdateScript(std::string scr) {
|
||||
if(nullptr != mVM){
|
||||
lua_close(mVM);
|
||||
}
|
||||
@ -42,8 +40,7 @@ int LuaDelegate::UpdateScript(std::string scr)
|
||||
return 0;
|
||||
}
|
||||
|
||||
void LuaDelegate::PrintError(lua_State *L)
|
||||
{
|
||||
void LuaDelegate::PrintError(lua_State *L) {
|
||||
std::cout<<"\nFATAL ERROR:%s\n\n"<< lua_tostring(L, -1);
|
||||
}
|
||||
|
||||
@ -56,7 +53,6 @@ void LuaDelegate::OnSerialData(std::string data){
|
||||
}
|
||||
|
||||
|
||||
|
||||
void LuaDelegate::DumpStack()
|
||||
{
|
||||
static int count = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user