diff options
| author | jsmall-nvidia <jsmall@nvidia.com> | 2019-08-08 16:09:29 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-08-08 16:09:29 -0400 |
| commit | c1cc93dd962a6db6c839341f11d2654cf0e62e37 (patch) | |
| tree | cc9048411387322e6910854bd63e606ae8ba03e8 /slang.h | |
| parent | 2552217b76c0bd83e18fceba1d35a367bf569eca (diff) | |
Make SlangSession an alias for slang::IGlobalSession (#1011)
* Make SlangSession an alias for slang::IGlobalSession.
Use asInternal/asExternal for casting in slang.cpp
Special case handling of asInternal which argument dependent lookup doesn't find.
* To improve implementation asInternal/asExternal in slang.cpp - tried making the internal impls forward to the Slang:: implementations. This caused ambiguities (for example when a function has using namespace Slang in it). To avoid these problems and make it clear where implementation is coming from use Slang::asInternal and removed the forwarding functions.
Made the impls SLANG_FORCE_INLINE instead of inline.
* Made asInternal/asExternal use SLANG_FORCE_INLINE uniformly.
Diffstat (limited to 'slang.h')
| -rw-r--r-- | slang.h | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -1055,10 +1055,14 @@ extern "C" #define SLANG_UUID_ISlangWriter { 0xec457f0e, 0x9add, 0x4e6b,{ 0x85, 0x1c, 0xd7, 0xfa, 0x71, 0x6d, 0x15, 0xfd } }; + namespace slang { + struct IGlobalSession; + } // namespace slang + /*! @brief An instance of the Slang library. */ - typedef struct SlangSession SlangSession; + typedef slang::IGlobalSession SlangSession; typedef struct SlangProgramLayout SlangProgramLayout; |
