Jump to content
Excelsior Forums
nsphilli

C enumerations

Recommended Posts

I am getting the following error when I attempt to call invoke with an argument to a C function that is an enumeration:

cannot find symbol
symbol  : method invoke(int,com.excelsior.xFunction.Pointer)
location: class com.excelsior.xFunction.xFunction
      int returnVal = (Integer)theFunction.invoke(1, arg2);

In C, enumerations are just a glorified integer but in Java they are an actual class. Is there any way to map these two types with xFunctions?  I could not find them listed in the type mapping table in the documentation.

I have emailed support about this issue with no response yet.

Thanks,

Nick

Share this post


Link to post
Share on other sites

xFunction 2.17 does not support mapping of enum types. So, you should use "int" in the signature and pass value of the particular enum as integer as well.

We added your request to the wish list.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×