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) ...@@ -98,8 +98,7 @@ static void dump_instr_arg(instr_arg_type_t type, instr_arg_t *arg)
break; break;
case ARG_NONE: case ARG_NONE:
break; break;
default: DEFAULT_UNREACHABLE;
assert(0);
} }
} }
...@@ -1398,9 +1397,7 @@ static HRESULT create_class_funcprop(compile_ctx_t *ctx, function_decl_t *func_d ...@@ -1398,9 +1397,7 @@ static HRESULT create_class_funcprop(compile_ctx_t *ctx, function_decl_t *func_d
case FUNC_PROPSET: case FUNC_PROPSET:
invoke_type = VBDISP_SET; invoke_type = VBDISP_SET;
break; break;
default: DEFAULT_UNREACHABLE;
assert(0);
return E_FAIL;
} }
assert(!desc->entries[invoke_type]); assert(!desc->entries[invoke_type]);
......
...@@ -1010,9 +1010,7 @@ static HRESULT Global_InStr(vbdisp_t *This, VARIANT *args, unsigned args_cnt, VA ...@@ -1010,9 +1010,7 @@ static HRESULT Global_InStr(vbdisp_t *This, VARIANT *args, unsigned args_cnt, VA
case 4: case 4:
FIXME("unsupported compare argument %s\n", debugstr_variant(args)); FIXME("unsupported compare argument %s\n", debugstr_variant(args));
return E_NOTIMPL; return E_NOTIMPL;
default: DEFAULT_UNREACHABLE;
assert(0);
return E_FAIL;
} }
if(startv) { if(startv) {
......
...@@ -172,8 +172,7 @@ static HRESULT invoke_builtin(vbdisp_t *This, const builtin_prop_t *prop, WORD f ...@@ -172,8 +172,7 @@ static HRESULT invoke_builtin(vbdisp_t *This, const builtin_prop_t *prop, WORD f
V_BSTR(res) = ret; V_BSTR(res) = ret;
break; break;
} }
default: DEFAULT_UNREACHABLE;
assert(0);
} }
return S_OK; return S_OK;
} }
......
...@@ -216,8 +216,7 @@ static void decrease_state(VBScript *This, SCRIPTSTATE state) ...@@ -216,8 +216,7 @@ static void decrease_state(VBScript *This, SCRIPTSTATE state)
break; break;
case SCRIPTSTATE_CLOSED: case SCRIPTSTATE_CLOSED:
break; break;
default: DEFAULT_UNREACHABLE;
assert(0);
} }
} }
......
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