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

Function arg

include/daScript/ast/ast.h:1034–1038  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1032 return cppName.empty() ? name : cppName;
1033 }
1034 FunctionPtr arg ( const char * argName ) {
1035 DAS_VERIFYF(arguments.size() == 1, "during a processing of the '%s' function\n", cppName.c_str());
1036 arguments[0]->name = argName;
1037 return this;
1038 }
1039 FunctionPtr args ( std::initializer_list<const char *> argList ) {
1040 if ( argList.size()==0 ) return this;
1041 DAS_VERIFYF(argList.size() == arguments.size(), "during a processing of the '%s' function\n", cppName.c_str());

Callers 1

argMethod · 0.50

Calls 2

sizeMethod · 0.45
c_strMethod · 0.45

Tested by

no test coverage detected