ultimatepp/uppdev/Testcase/UppTest/main.cpp
cxl a8a2e0ac7e .uppdev
git-svn-id: svn://ultimatepp.org/upp/trunk@2400 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2010-05-17 07:07:00 +00:00

53 lines
747 B
C++

#include "UppTest.h"
#define DLIMODULE Test
#define DLIHEADER <UppTest/UppTest.dli>
#include <Core/dli.h>
#if 0
INITBLOCK {
Test().SetLibName("./libtest.so");
if (Test() && !Test().IsInitted()) {
Test().Init();
LOG("Library Loaded");
}
}
EXITBLOCK {
if (Test() && Test().IsInitted()) {
Test().UnInit();
Test().Free();
LOG("Library unloaded");
}
}
#endif
UppTest::UppTest()
{
CtrlLayout(*this, "Upp Test");
#if 1
Test().SetLibName("./libtest.so");
if (Test() && !Test().IsInitted()) {
Test().Init();
LOG("Library Loaded");
}
#endif
}
UppTest::~UppTest()
{
#if 1
if (Test() && Test().IsInitted()) {
Test().UnInit();
Test().Free();
LOG("Library unloaded");
}
#endif
}
GUI_APP_MAIN
{
UppTest().Run();
}