MCPcopy Create free account
hub / github.com/WheretIB/nullc / GetDefaultConstructorName

Function GetDefaultConstructorName

NULLC/Parser.cpp:23–31  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

21}
22
23char* GetDefaultConstructorName(const char* name)
24{
25 unsigned length = (unsigned)strlen(name);
26 char *tmp = AllocateString(length + 2);
27 strcpy(tmp, name);
28 tmp[length] = '$';
29 tmp[length + 1] = 0;
30 return tmp;
31}
32
33inline bool ParseLexem(Lexeme** str, LexemeType type)
34{

Callers 3

FunctionStartFunction · 0.85
ParseAddVariableFunction · 0.85
ParseTerminalFunction · 0.85

Calls 1

AllocateStringFunction · 0.85

Tested by

no test coverage detected