mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 964892 - WebIDL 'assert' method should be implemented as '_assert_'. r=bz
This commit is contained in:
parent
98245088dc
commit
bff4f8945f
@ -6069,8 +6069,10 @@ class CppKeywords():
|
||||
|
||||
@staticmethod
|
||||
def checkMethodName(name):
|
||||
# Double '_' because 'assert' and '_assert' cannot be used in MS2013 compiler.
|
||||
# Bug 964892 and bug 963560.
|
||||
if name in CppKeywords.keywords:
|
||||
name = '_' + name
|
||||
name = '_' + name + '_'
|
||||
return name
|
||||
|
||||
class CGStaticMethod(CGAbstractStaticBindingMethod):
|
||||
|
Loading…
Reference in New Issue
Block a user