mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-05 23:38:38 +09:00
No issue - Remove "code" from jsprototype.h macros
Based-on: m-c 1394084
This commit is contained in:
parent
7d2b83fafc
commit
41c2b34542
8 changed files with 68 additions and 69 deletions
|
|
@ -51,7 +51,7 @@ struct ProtoTableEntry {
|
|||
|
||||
namespace js {
|
||||
|
||||
#define DECLARE_PROTOTYPE_CLASS_INIT(name,code,init,clasp) \
|
||||
#define DECLARE_PROTOTYPE_CLASS_INIT(name,init,clasp) \
|
||||
extern JSObject* init(JSContext* cx, Handle<JSObject*> obj);
|
||||
JS_FOR_EACH_PROTOTYPE(DECLARE_PROTOTYPE_CLASS_INIT)
|
||||
#undef DECLARE_PROTOTYPE_CLASS_INIT
|
||||
|
|
@ -65,8 +65,8 @@ js::InitViaClassSpec(JSContext* cx, Handle<JSObject*> obj)
|
|||
}
|
||||
|
||||
static const ProtoTableEntry protoTable[JSProto_LIMIT] = {
|
||||
#define INIT_FUNC(name,code,init,clasp) { clasp, init },
|
||||
#define INIT_FUNC_DUMMY(name,code,init,clasp) { nullptr, nullptr },
|
||||
#define INIT_FUNC(name,init,clasp) { clasp, init },
|
||||
#define INIT_FUNC_DUMMY(name,init,clasp) { nullptr, nullptr },
|
||||
JS_FOR_PROTOTYPES(INIT_FUNC, INIT_FUNC_DUMMY)
|
||||
#undef INIT_FUNC_DUMMY
|
||||
#undef INIT_FUNC
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue