/////////////////////////////////////////////////////////////////////
| 86 | |
| 87 | ////////////////////////////////////////////////////////////////////////// |
| 88 | bool CFunctionHandler::GetParamAny(int nIdx, ScriptAnyValue& any) |
| 89 | { |
| 90 | int nRealIdx = nIdx + m_paramIdOffset; |
| 91 | bool bRes = m_pSS->ToAny(any, nRealIdx); |
| 92 | if (!bRes) |
| 93 | { |
| 94 | ScriptVarType paramType = GetParamType(nIdx); |
| 95 | const char* sParamType = ScriptVarTypeAsCStr(paramType); |
| 96 | const char* sType = ScriptAnyTypeToString(any.type); |
| 97 | // Report wrong param. |
| 98 | ScriptWarning("[Script Error] Wrong parameter type. Function %s expect parameter %d of type %s (Provided type %s)", m_sFuncName, nIdx, sType, sParamType); |
| 99 | m_pSS->LogStackTrace(); |
| 100 | } |
| 101 | return bRes; |
| 102 | } |
| 103 | |
| 104 | ////////////////////////////////////////////////////////////////////////// |
| 105 | int CFunctionHandler::EndFunctionAny(const ScriptAnyValue& any) |
no test coverage detected