Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 7 additions & 3 deletions squirrel/sqvm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ bool SQVM::ObjCmp(const SQObjectPtr &o1,const SQObjectPtr &o2,SQInteger &result)
return false;
}
}
//continues through (no break needed)
/* fallthrough */
default:
_RET_SUCCEED( _userpointer(o1) < _userpointer(o2)?-1:1 );
}
Expand Down Expand Up @@ -312,6 +312,7 @@ bool SQVM::ToString(const SQObjectPtr &o,SQObjectPtr &res)
}
}
}
/* fallthrough */
default:
scsprintf(_sp(sq_rsl((sizeof(void*)*2)+NUMBER_MAX_CHAR)),sq_rsl((sizeof(void*)*2)+NUMBER_MAX_CHAR),_SC("(%s : 0x%p)"),GetTypeName(o),(void*)_rawval(o));
}
Expand Down Expand Up @@ -571,6 +572,7 @@ bool SQVM::FOREACH_OP(SQObjectPtr &o1,SQObjectPtr &o2,SQObjectPtr
_generator(o1)->Resume(this, o3);
_FINISH(0);
}
/* fallthrough */
default:
Raise_Error(_SC("cannot iterate %s"), GetTypeName(o1));
}
Expand Down Expand Up @@ -744,6 +746,7 @@ bool SQVM::Execute(SQObjectPtr &closure, SQInteger nargs, SQInteger stackbase,SQ
continue;
}
}
/* fallthrough */
case _OP_CALL: {
SQObjectPtr clo = STK(arg1);
switch (sq_type(clo)) {
Expand Down Expand Up @@ -807,6 +810,7 @@ bool SQVM::Execute(SQObjectPtr &closure, SQInteger nargs, SQInteger stackbase,SQ
//Raise_Error(_SC("attempt to call '%s'"), GetTypeName(clo));
//SQ_THROW();
}
/* fallthrough */
default:
Raise_Error(_SC("attempt to call '%s'"), GetTypeName(clo));
SQ_THROW();
Expand Down Expand Up @@ -1325,7 +1329,7 @@ SQInteger SQVM::FallBackGet(const SQObjectPtr &self,const SQObjectPtr &key,SQObj
else {
return FALLBACK_NO_MATCH;
}
//go through
/* fallthrough */
case OT_INSTANCE: {
SQObjectPtr closure;
if(_delegable(self)->GetMetaMethod(this, MT_GET, closure)) {
Expand Down Expand Up @@ -1393,7 +1397,7 @@ SQInteger SQVM::FallBackSet(const SQObjectPtr &self,const SQObjectPtr &key,const
if(_table(self)->_delegate) {
if(Set(_table(self)->_delegate,key,val,DONT_FALL_BACK)) return FALLBACK_OK;
}
//keps on going
/* fallthrough */
case OT_INSTANCE:
case OT_USERDATA:{
SQObjectPtr closure;
Expand Down