obuchtala / swig

Branch for the development of SWIG's javascript target (v8 and jsc)
https://github.com/swig/swig
Other
25 stars 14 forks source link

Missing 'SWIG_ConvertMember' and 'SWIG_NewMemberObj' #24

Closed obuchtala closed 11 years ago

obuchtala commented 11 years ago

E.g. used by test-case 'cpp_basic'

checking testcase cpp_basic under javascript
cpp_basic_wrap.cxx: In function ‘bool _wrap_Foo_func_ptr_set(JSContextRef, JSObjectRef, JSStringRef, JSValueRef, const OpaqueJSValue**)’:
cpp_basic_wrap.cxx:1391:117: error: ‘SWIG_ConvertMember’ was not declared in this scope
cpp_basic_wrap.cxx: In function ‘const OpaqueJSValue* _wrap_Foo_func_ptr_get(JSContextRef, JSObjectRef, JSStringRef, const OpaqueJSValue**)’:
cpp_basic_wrap.cxx:1424:111: error: ‘SWIG_NewMemberObj’ was not declared in this scope
cpp_basic_wrap.cxx: In function ‘const OpaqueJSValue* _wrap_get_func1_ptr(JSContextRef, JSObjectRef, JSObjectRef, size_t, const OpaqueJSValue* const*, const OpaqueJSValue**)’:
cpp_basic_wrap.cxx:2030:111: error: ‘SWIG_NewMemberObj’ was not declared in this scope
cpp_basic_wrap.cxx: In function ‘const OpaqueJSValue* _wrap_get_func2_ptr(JSContextRef, JSObjectRef, JSObjectRef, size_t, const OpaqueJSValue* const*, const OpaqueJSValue**)’:
cpp_basic_wrap.cxx:2049:111: error: ‘SWIG_NewMemberObj’ was not declared in this scope
make[2]: *** [javascript_cpp] Error 1
make[1]: *** [cpp_basic.cpptest] Error 2
obuchtala commented 11 years ago

Implemented, but not tested.