mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 722734. Add const signatures for converting back and forth between JS::Class and JSClass. r=mrbkap
This commit is contained in:
parent
a8531542b4
commit
b9917f3e19
@ -386,12 +386,22 @@ Jsvalify(Class *c)
|
||||
{
|
||||
return (JSClass *)c;
|
||||
}
|
||||
static JS_ALWAYS_INLINE const JSClass *
|
||||
Jsvalify(const Class *c)
|
||||
{
|
||||
return (const JSClass *)c;
|
||||
}
|
||||
|
||||
static JS_ALWAYS_INLINE Class *
|
||||
Valueify(JSClass *c)
|
||||
{
|
||||
return (Class *)c;
|
||||
}
|
||||
static JS_ALWAYS_INLINE const Class *
|
||||
Valueify(const JSClass *c)
|
||||
{
|
||||
return (const Class *)c;
|
||||
}
|
||||
|
||||
/*
|
||||
* Enumeration describing possible values of the [[Class]] internal property
|
||||
|
Loading…
Reference in New Issue
Block a user