File: wxlist.cpp

package info (click to toggle)
easyloggingpp 9.97.0%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye
  • size: 2,840 kB
  • sloc: cpp: 11,415; python: 2,336; sh: 337; makefile: 29
file content (19 lines) | stat: -rw-r--r-- 357 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#include <wx/list.h>
#include <wx/listimpl.cpp>
#include "easylogging++.h"

INITIALIZE_EASYLOGGINGPP

WX_DECLARE_LIST(int, MyList);

WX_DEFINE_LIST(MyList);

// Following enables MyList to be log-friendly
ELPP_WX_PTR_ENABLED(MyList)

int main() {
    MyList list;
    for (int i = 1; i < 110; ++i)
        list.Append(new int (i));
    LOG(INFO) << list;
}