MCPcopy Create free account
hub / github.com/anjo76/angelscript / GetImportedFunctionDeclaration

Method GetImportedFunctionDeclaration

sdk/angelscript/source/as_module.cpp:1444–1454  ·  view source on GitHub ↗

interface

Source from the content-addressed store, hash-verified

1442
1443// interface
1444const char *asCModule::GetImportedFunctionDeclaration(asUINT index) const
1445{
1446 asCScriptFunction *func = GetImportedFunction(index);
1447 if( func == 0 ) return 0;
1448
1449 asCString *tempString = &asCThreadManager::GetLocalData()->string;
1450 // TODO: Allow the application to decide if the parameter name should be included or not (requires change in the interface)
1451 *tempString = func->GetDeclarationStr(true, true, false);
1452
1453 return tempString->AddressOf();
1454}
1455
1456// interface
1457const char *asCModule::GetImportedFunctionSourceModule(asUINT index) const

Callers 3

DumpModuleFunction · 0.80
TestFunction · 0.80
BindImportedFunctionsFunction · 0.80

Calls 2

GetDeclarationStrMethod · 0.80
AddressOfMethod · 0.45

Tested by 3

DumpModuleFunction · 0.64
TestFunction · 0.64
BindImportedFunctionsFunction · 0.64