Codechange: Add __FILE__/__LINE__ of WindowDesc to WindowDesc.
This is to allow unit-tests to produce more useful output.
This commit is contained in:

committed by
Peter Nelson

parent
873f93cab1
commit
18fb8e153f
@@ -95,12 +95,14 @@ struct HotkeyList;
|
||||
*/
|
||||
struct WindowDesc : ZeroedMemoryAllocator {
|
||||
|
||||
WindowDesc(WindowPosition default_pos, const char *ini_key, int16_t def_width_trad, int16_t def_height_trad,
|
||||
WindowDesc(const char * const file, const int line, WindowPosition default_pos, const char *ini_key, int16_t def_width_trad, int16_t def_height_trad,
|
||||
WindowClass window_class, WindowClass parent_class, uint32_t flags,
|
||||
const NWidgetPart *nwid_begin, const NWidgetPart *nwid_end, HotkeyList *hotkeys = nullptr);
|
||||
|
||||
~WindowDesc();
|
||||
|
||||
const char * const file; ///< Source file of this definition
|
||||
const int line; ///< Source line of this definition
|
||||
WindowPosition default_pos; ///< Preferred position of the window. @see WindowPosition()
|
||||
WindowClass cls; ///< Class of the window, @see WindowClass.
|
||||
WindowClass parent_cls; ///< Class of the parent window. @see WindowClass
|
||||
|
Reference in New Issue
Block a user