HaxeFoundation / HaxeFoundation/hxcpp

@:include meta, accept multiple headers

Open
#885 4 comments 1 reaction 0 assignees View on GitHub
Dominant language
C++
Stars
330
Forks
227
Avg merge
2d 16h
Merged PRs (30d)
18

Description

Hi!

Sometimes, extern classes need to include more than one header.
The current solution will be to create a separate header that will contain all required headers and then include it into Haxe extern class.
Like this: `@:include('./Headers.h')` which is contain `HedaerA.h` and `HedaerB.h`

But, it would be nice if `@:include` will accept multiple headers out of the box, something like:
```haxe
@:include('HedaerA.h', 'HedaerB.h')
extern class Native {}
```
or
```haxe
@:include('HedaerA.h')
@:include('HedaerB.h')
extern class Native {}
```
Thank you!

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.