#include <js_overlay_functions.h>
namespace JSCFunctions {
-
std::string ConvertJSStringToStdString(JSStringRef value)
{
int nSize = JSStringGetLength(value) + 1;
}
JSValueRef JavaScriptHookProc(
- JSContextRef context,
- JSObjectRef /*object*/,
- JSObjectRef /*thisObject*/,
- size_t argumentCount,
- const JSValueRef arguments[],
- JSValueRef* exception)
+ JSContextRef context,
+ JSObjectRef /*object*/,
+ JSObjectRef /*thisObject*/,
+ size_t argumentCount,
+ const JSValueRef arguments[],
+ JSValueRef* exception)
{
bool inError = false;
if (argumentCount < 2 ||
argumentCount > 3 ||
!JSValueIsString(context, arguments[0]) ||
- !JSValueIsString(context, arguments[1])) {
-
+ !JSValueIsString(context, arguments[1]))
+ {
inError = true;
}