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

[cpp] @:include for extern enum abstract not working #11945

Open
kevinresol opened this issue Jan 27, 2025 · 1 comment
Open

[cpp] @:include for extern enum abstract not working #11945

kevinresol opened this issue Jan 27, 2025 · 1 comment

Comments

@kevinresol
Copy link
Contributor

In the following example, the generated code in Main.cpp does not have #include "mode.hpp", causing native compilation error.

@:include("mode.hpp") @:native("foo::Mode")
extern enum abstract Mode(Int) {
	final X;
}
class Main {
  static function main() {
    trace(Mode.X);
  }
@kevinresol
Copy link
Contributor Author

Forgot to search in hxcpp repo before raising the issue. In fact this has been mentioned in HaxeFoundation/hxcpp#1099

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