Previous 15994 Revisions Next

r8852 Sunday 22nd August, 2010 at 12:37:46 UTC by Miodrag Milanović
Since previous fix made lot of issues, found better solution for this astring bool problem
[src/emu/debug]debugcpu.c
[src/lib/util]astring.h

src/emu/debug/debugcpu.c
r8851r8852
27532753
27542754   // disassemble to our buffer
27552755   buffer.expand(200);
2756   return disassemble(buffer, pc, opbuf, argbuf);
2756   return disassemble(buffer.text, pc, opbuf, argbuf);
27572757}
27582758
27592759
src/lib/util/astring.h
r8851r8852
333333   astring &reset() { return cpy(""); }
334334   astring &expand(int length) { astring_expand(this, length); return *this; }
335335
336   operator char *() { return (this->text[0] != 0) ? this->text : NULL; }
336   operator bool() const { return this->text[0] != 0; }
337337   operator const char *() const { return astring_c(this); }
338338   const char *cstr() const { return astring_c(this); }
339339   int len() const { return astring_len(this); }

Previous 15994 Revisions Next


© 1998-2018 The MESS Team