mirror of
https://github.com/wren-lang/wren.git
synced 2026-01-18 13:49:59 +01:00
Don't require nonstandard __builtin_unreachable() in UNREACHABLE().
Fix #304 (I hope).
This commit is contained in:
@ -632,7 +632,9 @@ static inline ObjFn* wrenGetFrameFunction(CallFrame* frame)
|
||||
{
|
||||
case OBJ_FN: return (ObjFn*)frame->fn;
|
||||
case OBJ_CLOSURE: return ((ObjClosure*)frame->fn)->fn;
|
||||
default: UNREACHABLE();
|
||||
default:
|
||||
UNREACHABLE();
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user