JavaScriptCore: C89: declare variables at the top for antiquated compilers like Microsoft Visual Studio.
This commit is contained in:
parent
486e903de1
commit
fade0bcbde
1 changed files with 2 additions and 1 deletions
|
|
@ -128,11 +128,12 @@ int SWIG_JSC_ConvertInstancePtr(JSContextRef context, JSObjectRef objRef, void**
|
|||
}
|
||||
|
||||
int SWIG_JSC_ConvertPtr(JSContextRef context, JSValueRef valRef, void** ptr, swig_type_info *info, int flags) {
|
||||
JSObjectRef objRef;
|
||||
if(!JSValueIsObject(context, valRef)) {
|
||||
return SWIG_TypeError;
|
||||
}
|
||||
|
||||
JSObjectRef objRef = JSValueToObject(context, valRef, NULL);
|
||||
objRef = JSValueToObject(context, valRef, NULL);
|
||||
if(objRef == NULL) {
|
||||
return SWIG_ERROR;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue