#include <kernwin.hpp> // For get_screen_ea() definition #include <lines.hpp> ea_t ea = get_screen_ea(); // Buffer that will hold the disassembly text char buf[MAXSTR]; // Store the disassembled text in buf generate_disasm_line(ea, buf, sizeof(buf)-1); // This will appear as colour-tagged text (which will be mostly unreadable in IDA's Log window) msg("Current line: %s\n", buf);