Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error on translate double pointer on struct #111

Open
Anivie opened this issue Feb 25, 2023 · 0 comments
Open

Error on translate double pointer on struct #111

Anivie opened this issue Feb 25, 2023 · 0 comments
Labels
Bug Something isn't working Macros The issue/PR related to C macros

Comments

@Anivie
Copy link

Anivie commented Feb 25, 2023

Origin code:

struct JNIInvokeInterface_ {
    void *reserved0;
    void *reserved1;
    void *reserved2;

    jint (JNICALL *DestroyJavaVM)(JavaVM *vm);

    jint (JNICALL *AttachCurrentThread)(JavaVM *vm, void **penv, void *args);

    jint (JNICALL *DetachCurrentThread)(JavaVM *vm);

    jint (JNICALL *GetEnv)(JavaVM *vm, void **penv, jint version);

    jint (JNICALL *AttachCurrentThreadAsDaemon)(JavaVM *vm, void **penv, void *args);
};

Translated by C2V:

struct JNIInvokeInterface_ { 
	reserved0 voidptr
	reserved1 voidptr
	reserved2 voidptr
	DestroyJavaVM fn (&JavaVM) Jint
	AttachCurrentThread fn (&JavaVM, &Voidptr*, voidptr) Jint
	DetachCurrentThread fn (&JavaVM) Jint
	GetEnv fn (&JavaVM, &Voidptr*, Jint) Jint
	AttachCurrentThreadAsDaemon fn (&JavaVM, &Voidptr*, voidptr) Jint
}

You can find this file in there.

@ArtemkaKun ArtemkaKun added the Bug Something isn't working label Mar 19, 2023
@ArtemkaKun ArtemkaKun added the Macros The issue/PR related to C macros label Apr 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working Macros The issue/PR related to C macros
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants