You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The generated C++ code sometimes wants to use an argument arg0 that is not declared in the function protoype. I assume that the issue is on my end, because it worked before. I didn't work on the project for a few months and I can't recall if it actually worked or how to fix it. The provided code is only from one of the methods that wants the arg0 argument. There are many more that aren't declared correctly.
But I am also getting the following warnings from the Generator:
Warning: First parameter of caller method call() or apply() for member function pointer org.duktape.duktapejava.Duktape.Function is not a Pointer. Compilation will most likely fail.
Warning: First parameter of caller method call() or apply() for member function pointer org.duktape.duktapejava.Duktape.FatalHandler is not a Pointer. Compilation will most likely fail.
Warning: First parameter of caller method call() or apply() for member function pointer org.duktape.duktapejava.Duktape.Function is not a Pointer. Compilation will most likely fail.
Warning: First parameter of caller method call() or apply() for member function pointer org.duktape.duktapejava.Duktape.FatalHandler is not a Pointer. Compilation will most likely fail.
I debugged the Generator a little, and all the warnings are caused by the allocate function not having an argument that is a Pointer.
GCC output:
/home/rene/Dropbox/Code/duktape-java/build/tmp/native/duktape-java-linux-x86_64.cpp: In function ‘int JavaCPP_org_duktape_duktapejava_Duktape_00024Function_allocate_callback()’:
/home/rene/Dropbox/Code/duktape-java/build/tmp/native/duktape-java-linux-x86_64.cpp:1384:93: error: ‘arg0’ was not declared in this scope
return JavaCPP_org_duktape_duktapejava_Duktape_00024Function_allocate_callback_instance(arg0);
^
The generated C++ code sometimes wants to use an argument
arg0
that is not declared in the function protoype. I assume that the issue is on my end, because it worked before. I didn't work on the project for a few months and I can't recall if it actually worked or how to fix it. The provided code is only from one of the methods that wants thearg0
argument. There are many more that aren't declared correctly.But I am also getting the following warnings from the Generator:
I debugged the Generator a little, and all the warnings are caused by the allocate function not having an argument that is a Pointer.
GCC output:
Snipped from the generated C++ code:
The used Java definition:
The text was updated successfully, but these errors were encountered: