interface
| 1818 | |
| 1819 | // interface |
| 1820 | int 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 |
no test coverage detected