Source

pyGAP / game / src / main / main_win32.cpp

Full commit
#include <windows.h>

#include "game/game_win32.h"
#include "game/game_loop_sample.h"
#include "common/log.h"

//#include "common/list.h"
//class Test {
//    public:
//    common::ListNode<Test>  node_;
//};

int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance,
    LPSTR lpCmdLine, int nCmdShow)
{
#if defined(DEBUG)
    common::Log* log_ = common::Log::get("main");
#endif
    LOG("starting game...");

    //Test* test = new Test();
    //common::List<Test>* list_test = new INTRUSIVE_LIST(Test, node_);
    //list_test->push_back(test);
    //delete test;
    //delete list_test;

    game::GameLoopSample game_loop;
    game::GameWin32 *game;
    game = new game::GameWin32(&game_loop);

    game->run();

    delete game;

#if defined(DEBUG)
    common::Log::clear();
#endif

    return 0;
}