Commit 9eed654e authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

vbscript: Use DEFAULT_UNREACHABLE macro where appropriate.

parent 15448724
......@@ -98,8 +98,7 @@ static void dump_instr_arg(instr_arg_type_t type, instr_arg_t *arg)
break;
case ARG_NONE:
break;
default:
assert(0);
DEFAULT_UNREACHABLE;
}
}
......@@ -1398,9 +1397,7 @@ static HRESULT create_class_funcprop(compile_ctx_t *ctx, function_decl_t *func_d
case FUNC_PROPSET:
invoke_type = VBDISP_SET;
break;
default:
assert(0);
return E_FAIL;
DEFAULT_UNREACHABLE;
}
assert(!desc->entries[invoke_type]);
......
......@@ -1010,9 +1010,7 @@ static HRESULT Global_InStr(vbdisp_t *This, VARIANT *args, unsigned args_cnt, VA
case 4:
FIXME("unsupported compare argument %s\n", debugstr_variant(args));
return E_NOTIMPL;
default:
assert(0);
return E_FAIL;
DEFAULT_UNREACHABLE;
}
if(startv) {
......
......@@ -172,8 +172,7 @@ static HRESULT invoke_builtin(vbdisp_t *This, const builtin_prop_t *prop, WORD f
V_BSTR(res) = ret;
break;
}
default:
assert(0);
DEFAULT_UNREACHABLE;
}
return S_OK;
}
......
......@@ -216,8 +216,7 @@ static void decrease_state(VBScript *This, SCRIPTSTATE state)
break;
case SCRIPTSTATE_CLOSED:
break;
default:
assert(0);
DEFAULT_UNREACHABLE;
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment