Skip to content

Add missing RTC_NAMESPACE definition to rtcore_config#554

Merged
stefanatwork merged 1 commit into
RenderKit:masterfrom
dbs4261:patch-2
Aug 7, 2025
Merged

Add missing RTC_NAMESPACE definition to rtcore_config#554
stefanatwork merged 1 commit into
RenderKit:masterfrom
dbs4261:patch-2

Conversation

@dbs4261

@dbs4261 dbs4261 commented Jul 24, 2025

Copy link
Copy Markdown
Contributor

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