static void test_utility_TypeInfoWrapper() { TypeInfoWrapper t_int(typeid(int)); TypeInfoWrapper t_int1(typeid(3)); TypeInfoWrapper t_float(typeid(3.0f)); ASSERT(t_int == t_int1); ASSERT(t_int != t_float); }
static Symbol* fkt_thread_hwcount(const std::vector<Symbol*>& vecSyms, ParseInfo& info, RuntimeInfo &runinfo, SymbolTable* pSymTab) { unsigned int iNumThreads = std::thread::hardware_concurrency(); if(iNumThreads == 0) iNumThreads = 1; return new SymbolInt(t_int(iNumThreads)); }