MCPcopy Create free account
hub / github.com/devosoft/avida / Get

Method Get

avida-core/source/script/cASCPPParameter_NativeObjectSupport.h:29–34  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

27
28
29template<typename T> inline T cASCPPParameter::Get() const
30{
31 if (strcmp(m_nobj->GetType(), typeid(T).name()) != 0)
32 exit(AS_EXIT_INTERNAL_ERROR); // @AS_TODO - report type mismatch error
33 return (T)m_nobj->GetObject();
34}
35
36#endif

Callers

nothing calls this directly

Calls 2

GetTypeMethod · 0.45
GetObjectMethod · 0.45

Tested by

no test coverage detected