src/oslinfo/oslinfo.cpp
// Print the default values for a parameter built out of integers.
Print the default values for a parameter built out of integers.
Print the default values for a parameter built out of integers .
static void
print_default_string_vals(const OSLQuery::Parameter* p, bool verbose)
{
    size_t ne;
    if (p->varlenarray || p->type.arraylen < 0)
        ne = p->sdefault.size();
    else
        ne = p->type.numelements();
    if (verbose) {
        for (size_t a = 0; a < ne; ++a)
            std::cout << "\t\tDefault value: \""
                      << OIIO::Strutil::escape_chars(p->sdefault[a]) << "\"\n";
    } else {
        for (size_t a = 0; a < ne; ++a)
            std::cout << "\"" << OIIO::Strutil::escape_chars(p->sdefault[a])
                      << "\" ";
        std::cout << "\n";
    }
}
static void print_default_string_vals ( const OSLQuery :: Parameter * p , bool verbose ) { size_t ne ; if ( p -> varlenarray || p -> type . arraylen < 0 ) ne = p -> sdefault . size ( ) ; else ne = p -> type . numelements ( ) ; if ( verbose ) { for ( size_t a = 0 ; a < ne ; ++ a ) std :: cout << " \t \t \" " << OIIO :: Strutil :: escape_chars ( p -> sdefault [ a ] ) << " \" \n " ; } else { for ( size_t a = 0 ; a < ne ; ++ a ) std :: cout << " \" " << OIIO :: Strutil :: escape_chars ( p -> sdefault [ a ] ) << " \" " ; std :: cout << " \n " ; } }
Print the default values for a parameter built out of integers.
Print the default values for a parameter built out of integers .