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

native/type fails to generate working typedef #5

Open
hendrenja opened this issue Dec 19, 2017 · 0 comments
Open

native/type fails to generate working typedef #5

hendrenja opened this issue Dec 19, 2017 · 0 comments

Comments

@hendrenja
Copy link
Member

In an attempt to create generated functions with void* parameters, I tried using native/type type to define a void* type in the model.cx file.

native/type NativeVoidType: "void*"

class TypeConvert:/
    int16 Cast(
        string src,
        NativeVoidType dest,
        type t)

Generates: _type.h

/* Native types */
#ifndef APOLLO_H
typedef void* void;
#endif

Error

warn src/install.c:162 (bake_uninstall) missing uninstaller for project 'apollo'
In file included from /home/hendren/.corto/include/corto/2.0/apollo/c/_api.h:12:0,
                 from /home/hendren/.corto/include/corto/2.0/apollo/c/c.h:1,
                 from src/_api.c:7:
/home/hendren/.corto/include/corto/2.0/apollo/_type.h:32:15: error: expected identifier or ‘(’ beforevoidtypedef void* void;
               ^~~~
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant