forked from mirrors/0ad
Split JS conversions from ScriptInterface.
All ToJSVal/FromJSVal definitions are put in a separate header. Remove AssignOr[To/From]JSVal duplication. The functions were already static so this is rather straightforward. Follows34b1920e7band2bae30c454Differential Revision: https://code.wildfiregames.com/D3953 This was SVN commit r25428.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
/* Copyright (C) 2020 Wildfire Games.
|
||||
/* Copyright (C) 2021 Wildfire Games.
|
||||
* This file is part of 0 A.D.
|
||||
*
|
||||
* 0 A.D. is free software: you can redistribute it and/or modify
|
||||
@@ -124,6 +124,6 @@ bool JSI_GUISize::toString(JSContext* cx, uint argc, JS::Value* vp)
|
||||
SIDE(bottom);
|
||||
#undef SIDE
|
||||
|
||||
ScriptInterface::ToJSVal(rq, args.rval(), buffer);
|
||||
Script::ToJSVal(rq, args.rval(), buffer);
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user