From 3335be13628e5baeb86673899930a77d852fddbc Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Mon, 10 Apr 2023 21:27:37 +0200 Subject: [PATCH] Document WX_DECLARE_LIST and WX_DEFINE_LIST macros Even though they're deprecated, they should still be documented, just as similar WX_DECLARE_OBJARRAY and WX_DEFINE_OBJARRAY are. --- interface/wx/list.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/interface/wx/list.h b/interface/wx/list.h index 8c9e724ef3..1215e031b6 100644 --- a/interface/wx/list.h +++ b/interface/wx/list.h @@ -460,3 +460,19 @@ public: void SetData(T* data); }; +/** + This macro declares a new legacy linked list container named @a name and + containing pointers to the objects of type @e T. + + You must use the WX_DEFINE_LIST() macro to define the class declared by + this macro. +*/ +#define WX_DECLARE_LIST(T, name) + +/** + This macro define a new legacy linked list container named @a name. + + You must use WX_DECLARE_LIST() macro to declare the list class before + defining it. +*/ +#define WX_DEFINE_LIST(T, name)