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

typedef error Cannot marshal argument of function #1846

Open
xushengbo opened this issue Apr 23, 2024 · 0 comments
Open

typedef error Cannot marshal argument of function #1846

xushengbo opened this issue Apr 23, 2024 · 0 comments

Comments

@xushengbo
Copy link

An error occurred while wrapping the following code into a CLI :Cannot marshal argument of function IsEqual

typedef int Standard_Integer;
typedef char16_t Standard_ExtCharacter;
typedef bool Standard_Boolean;
class Foo
{
public:

Standard_Integer a;

float b;
Standard_ExtCharacter c;

inline Standard_Boolean IsEqual(const Standard_ExtCharacter One,
	const Standard_ExtCharacter Two)
{
	return One == Two;
}

};
Replace the code below and work fine.Why? not support typedef ? or not support char16_t ?

#pragma once
typedef int Standard_Integer;
typedef char16_t Standard_ExtCharacter;
typedef bool Standard_Boolean;
class Foo
{
public:

Standard_Integer a;

float b;
Standard_ExtCharacter c;

inline Standard_Boolean IsEqual(const char16_t One,
	const char16_t Two)
{
	return One == Two;
}

};
__declspec(dllexport) Standard_Integer FooAdd(Foo* foo);

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