MCPcopy Create free account
hub / github.com/GarageGames/Torque3D / getPrototypeString

Method getPrototypeString

Engine/source/console/consoleInternal.cpp:1734–1782  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1732}
1733
1734String Namespace::Entry::getPrototypeString() const
1735{
1736 StringBuilder str;
1737
1738 // Start with return type.
1739
1740 if( mHeader && mHeader->mReturnString )
1741 {
1742 str.append( sGetDocTypeString( mHeader->mReturnString ) );
1743 str.append( ' ' );
1744 }
1745 else
1746 switch( mType )
1747 {
1748 case StringCallbackType:
1749 str.append( "string " );
1750 break;
1751
1752 case IntCallbackType:
1753 str.append( "int " );
1754 break;
1755
1756 case FloatCallbackType:
1757 str.append( "float " );
1758 break;
1759
1760 case VoidCallbackType:
1761 str.append( "void " );
1762 break;
1763
1764 case BoolCallbackType:
1765 str.append( "bool " );
1766 break;
1767
1768 case ScriptCallbackType:
1769 break;
1770 }
1771
1772 // Add function name and arguments.
1773
1774 if( mType == ScriptCallbackType )
1775 str.append( cb.mCallbackName );
1776 else
1777 str.append( mFunctionName );
1778
1779 str.append( getArgumentsString() );
1780
1781 return str.end();
1782}
1783
1784//-----------------------------------------------------------------------------
1785

Callers 4

simObject.cppFile · 0.45
dumpFunctionFunction · 0.45
printNamespaceEntriesMethod · 0.45

Calls 3

sGetDocTypeStringFunction · 0.85
appendMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected