MCPcopy Create free account
hub / github.com/dhewm/dhewm3 / AddFunctionParm

Method AddFunctionParm

neo/d3xp/script/Script_Program.cpp:301–309  ·  view source on GitHub ↗

================ idTypeDef::AddFunctionParm Adds a new parameter for a function type. ================ */

Source from the content-addressed store, hash-verified

299================
300*/
301void idTypeDef::AddFunctionParm( idTypeDef *parmtype, const char *name ) {
302 if ( type != ev_function ) {
303 throw idCompileError( "idTypeDef::AddFunctionParm : tried to add parameter on non-function type" );
304 }
305
306 parmTypes.Append( parmtype );
307 idStr &parmName = parmNames.Alloc();
308 parmName = name;
309}
310
311/*
312================

Callers 2

ParseFunctionMethod · 0.45
ParseEventDefMethod · 0.45

Calls 3

idCompileErrorClass · 0.70
AppendMethod · 0.45
AllocMethod · 0.45

Tested by

no test coverage detected