Previous 199869 Revisions Next

r34383 Wednesday 14th January, 2015 at 00:54:46 UTC by Couriersud
Avoid inline osd calls in header file.
[src/emu]devfind.c devfind.h

trunk/src/emu/devfind.c
r242894r242895
110110      osd_printf_verbose("Optional %s '%s' not found\n", objname, m_tag);
111111   return !required;
112112}
113
114
115void finder_base::printf_warning(const char *format, ...)
116{
117    va_list argptr;
118    char buffer[1024];
119
120    /* do the output */
121    va_start(argptr, format);
122    vsnprintf(buffer, 1024, format, argptr);
123    osd_printf_warning("%s", buffer);
124    va_end(argptr);
125}
trunk/src/emu/devfind.h
r242894r242895
5757   void *find_memshare(UINT8 width, size_t &bytes, bool required);
5858   bool report_missing(bool found, const char *objname, bool required);
5959
60    void printf_warning(const char *format, ...) ATTR_PRINTF(2,3);
61
6062   // internal state
6163   finder_base *m_next;
6264   device_t &m_base;
r242894r242895
113115      this->m_target = dynamic_cast<_DeviceClass *>(device);
114116      if (device != NULL && this->m_target == NULL)
115117      {
116         void osd_printf_warning(const char *format, ...) ATTR_PRINTF(1,2);
117         osd_printf_warning("Device '%s' found but is of incorrect type (actual type is %s)\n", this->m_tag, device->name());
118         this->printf_warning("Device '%s' found but is of incorrect type (actual type is %s)\n", this->m_tag, device->name());
118119      }
119120      return this->report_missing(this->m_target != NULL, "device", _Required);
120121   }


Previous 199869 Revisions Next


© 1997-2024 The MAME Team