diff options
| author | jsmall-nvidia <jsmall@nvidia.com> | 2022-03-02 10:07:26 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-03-02 10:07:26 -0500 |
| commit | 11da2fb2051894b3cc873748cfc8f47588d8af93 (patch) | |
| tree | ae5521fb36793f113f69bb7b251a34cf858e87e1 /slang.h | |
| parent | 1b0d4259fbe39fbe2cd8482eb30d22a371db0b1a (diff) | |
Small fix to use SlangResult (#2149)
* Use SlangResult value. Make legacy SLANG_ERROR_ macros use SlangResult values.
Diffstat (limited to 'slang.h')
| -rw-r--r-- | slang.h | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -4471,9 +4471,8 @@ declarations over time. extern "C" { #endif - -#define SLANG_ERROR_INSUFFICIENT_BUFFER -1 -#define SLANG_ERROR_INVALID_PARAMETER -2 +#define SLANG_ERROR_INSUFFICIENT_BUFFER SLANG_E_BUFFER_TOO_SMALL +#define SLANG_ERROR_INVALID_PARAMETER SLANG_E_INVALID_ARG SLANG_API char const* spGetTranslationUnitSource( SlangCompileRequest* request, |
