MCPcopy Create free account
hub / github.com/GaijinEntertainment/daScript / das_structure_add_field

Function das_structure_add_field

src/misc/daScriptC.cpp:503–508  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

501}
502
503void das_structure_add_field ( das_structure * st, das_module * mod, das_module_group * lib, const char * name, const char * cppname, int offset, const char * tname ) {
504 MangledNameParser parser;
505 auto tt = (const char *) tname;
506 auto at = parser.parseTypeFromMangledName(tt, *(ModuleLibrary*)lib,(Module *)mod);
507 ((CStructureAnnotation *)st)->addFieldEx(name,cppname,offset,at);
508}
509
510das_enumeration * das_enumeration_make ( const char * name, const char * cppname, int ext ) {
511 auto pEnum = new Enumeration(name);

Callers 1

Calls 1

Tested by

no test coverage detected