Skip to content

Commit f982bb8

Browse files
committed
Add assert for unhandled switch case with caps_lock
1 parent a1ce0de commit f982bb8

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

extensions/hid/libhid.m

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,13 @@ static int access_capslock(int op){
7676
return (int) kr;
7777
}
7878
break;
79+
default:
80+
{
81+
NSCAssert(NO, @"Unexpected CAPS_LOCK op passed to access_capslock: %i",op);
82+
break;
83+
}
7984
}
80-
85+
8186
IOServiceClose(ioc);
8287
return (bool) state;
8388
}

0 commit comments

Comments
 (0)