Blender V4.3
osl/compat.h
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2011-2023 Blender Foundation
2 *
3 * SPDX-License-Identifier: Apache-2.0 */
4
5#pragma once
6
7#include <OSL/oslconfig.h>
8
10
11typedef OSL::ustringhash OSLUStringHash;
12#if OSL_LIBRARY_VERSION_CODE >= 11400
13typedef OSL::ustringhash OSLUStringRep;
14#else
15typedef OSL::ustringrep OSLUStringRep;
16#endif
17
18static inline OSL::ustring to_ustring(OSLUStringHash h)
19{
20 return OSL::ustring::from_hash(h.hash());
21}
22
#define CCL_NAMESPACE_END
static OSL::ustring to_ustring(OSLUStringHash h)
Definition osl/compat.h:18
CCL_NAMESPACE_BEGIN typedef OSL::ustringhash OSLUStringHash
Definition osl/compat.h:11
OSL::ustringrep OSLUStringRep
Definition osl/compat.h:15