We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 107983d commit 65c64bcCopy full SHA for 65c64bc
Tools/clinic/libclinic/dsl_parser.py
@@ -430,7 +430,12 @@ def at_disable(self, *args: str) -> None:
430
fail("Can't set @disable, function is not a normal callable")
431
if not args:
432
fail("@disable expects at least one argument")
433
- self.disable_fastcall = 'fastcall' in args
+ features = list(args)
434
+ if 'fastcall' in features:
435
+ features.remove('fastcall')
436
+ self.disable_fastcall = True
437
+ if features:
438
+ fail("invalid argument for @disable:", features[0])
439
440
def at_getter(self) -> None:
441
match self.kind:
0 commit comments