MCPcopy Create free account
hub / github.com/AcademySoftwareFoundation/OpenShadingLanguage / osl_warning

Function osl_warning

src/liboslexec/opstring.cpp:202–212  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

200
201
202OSL_SHADEOP void
203osl_warning (ShaderGlobals *sg, const char* format_str, ...)
204{
205 if (sg->context->allow_warnings()) {
206 va_list args;
207 va_start (args, format_str);
208 std::string s = Strutil::vformat (format_str, args);
209 va_end (args);
210 sg->context->warning ("%s", s);
211 }
212}
213
214
215

Callers

nothing calls this directly

Calls 1

warningMethod · 0.45

Tested by

no test coverage detected