src/verilogPreproc/verilogPreproc.cpp
//method call when `undef macroID if found
method call when `undef macroID if found
method call when ` undef macroID if found
antlrcpp::Any VerilogPreproc::visitUndef(
		verilogPreprocParser::UndefContext *ctx) {
	auto m = container.defineDB.find(ctx->ID()->getText());
	if (m != container.defineDB.end() && !m->second->is_persistent) {
		container.defineDB.erase(m);
		delete m->second;
	}
	replace_context_by_bank(ctx);
	return NULL;
}
antlrcpp :: Any VerilogPreproc :: visitUndef ( verilogPreprocParser :: UndefContext * ctx ) { auto m = container . defineDB . find ( ctx -> ID ( ) -> getText ( ) ) ; if ( m != container . defineDB . end ( ) && ! m -> second -> is_persistent ) { container . defineDB . erase ( m ) ; delete m -> second ; } replace_context_by_bank ( ctx ) ; return NULL ; }
method call when `undef macroID if found
method call when ` undef macroID if found
//printf("@%s\n",__PRETTY_FUNCTION__); // we simply remove the macro from the macroDB object. So it is not anymore // defined