Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/AcademySoftwareFoundation/OpenShadingLanguage
/ new_struct
Method
new_struct
src/liboslcomp/symtab.cpp:237–243 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
235
236
237
int
238
SymbolTable::new_struct (ustring name)
239
{
240
int structid = TypeSpec::new_struct (new StructSpec (name, scopeid()));
241
insert (new Symbol (name, TypeSpec (
""
,structid), SymTypeType));
242
return structid;
243
}
244
245
246
Callers
nothing calls this directly
Calls
1
TypeSpec
Class · 0.70
Tested by
no test coverage detected