| 1203 | } |
| 1204 | |
| 1205 | void Context::runVisitor ( SimVisitor * vis ) const { |
| 1206 | for ( int gvi=0, gvis=totalVariables; gvi!=gvis; ++gvi ) { |
| 1207 | const auto & gv = globalVariables[gvi]; |
| 1208 | if ( gv.init ) gv.init->visit(*vis); |
| 1209 | } |
| 1210 | for ( int fni=0, fnis=totalFunctions; fni!=fnis; ++fni ) { |
| 1211 | const auto & fn = functions[fni]; |
| 1212 | if ( fn.code ) fn.code->visit(*vis); |
| 1213 | } |
| 1214 | } |
| 1215 | |
| 1216 | void Context::onAllocateString ( void * ptr, uint64_t size, bool tempString, const LineInfo & at ) { |
| 1217 | if ( g_envTotal == 0 ) return; |