Skip to content

How to override #1848

@Maxwell175

Description

@Maxwell175
Brief Description

In my situation I have a typedefed C enum that is intended to be passed as a parameter to a function. However, this function declaration merely identifies the parameter as a long so there is no way for CppSharp to figure out that the 2 are related. How can I override the parameter of this function to use the Enum type?

OS: Windows

Used headers
// attribute 
typedef enum
{
    SP_ATTR_TIMEOUT         = 1,
    SP_ATTR_LOG             = 2        
} SP_ATTR_ENUM;

SP_EXPORT int       SP_API SP_SetProperty   (SP_HANDLE hDiag, long lProperty, long lFlag, const void *lpValue);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions