MCPcopy Create free account
hub / github.com/MayaPosch/NymphCast / RemoveFunction

Method RemoveFunction

src/server/angelscript/angelscript/source/as_module.cpp:1820–1834  ·  view source on GitHub ↗

interface

Source from the content-addressed store, hash-verified

1818
1819// interface
1820int asCModule::RemoveFunction(asIScriptFunction *func)
1821{
1822 // Find the global function
1823 asCScriptFunction *f = static_cast<asCScriptFunction*>(func);
1824 int idx = m_globalFunctions.GetIndex(f);
1825 if( idx >= 0 )
1826 {
1827 m_globalFunctions.Erase(idx);
1828 m_scriptFunctions.RemoveValue(f);
1829 f->ReleaseInternal();
1830 return 0;
1831 }
1832
1833 return asNO_FUNCTION;
1834}
1835
1836#ifndef AS_NO_COMPILER
1837// internal

Callers 2

AddFunctionFunction · 0.80
DeleteFunctionFunction · 0.80

Calls 4

RemoveValueMethod · 0.80
GetIndexMethod · 0.45
EraseMethod · 0.45
ReleaseInternalMethod · 0.45

Tested by

no test coverage detected