mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-16 06:05:58 -06:00
53 lines
747 B
C++
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();
|
|
}
|
|
|