Skip to content

Conversation

@dbs4261
Copy link
Contributor

@dbs4261 dbs4261 commented Jul 24, 2025

rtcore_config.h.in does not define RTC_NAMESPACE when EMBREE_API_NAMESPACE is not defined when it should be defined but empty. This can cause a problem with forward declarations like the following:

RTC_NAMESPACE_BEGIN
typedef struct RTCSceneTy* RTCScene;
RTC_NAMESPACE_END

void my_function(RTC_NAMESPACE::RTCScene scene);

`rtcore_config.h.in does` not define `RTC_NAMESPACE` when `EMBREE_API_NAMESPACE` is not defined when it should be defined but empty. This can cause a problem with forward declarations like the following:
```c++
RTC_NAMESPACE_BEGIN
typedef struct RTCSceneTy* RTCScene;
RTC_NAMESPACE_END

void my_function(RTC_NAMESPACE::RTCScene scene);
```
@stefanatwork stefanatwork self-requested a review August 7, 2025 08:08
@stefanatwork stefanatwork self-assigned this Aug 7, 2025
@stefanatwork stefanatwork merged commit 1372ca0 into RenderKit:master Aug 7, 2025
2 checks passed
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

Successfully merging this pull request may close these issues.

2 participants