ultimatepp/upptst/INI/INI.cpp
cxl 83c67cd38f .upptst
git-svn-id: svn://ultimatepp.org/upp/trunk@7196 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2014-04-09 06:42:23 +00:00

30 lines
429 B
C++

#include <Core/Core.h>
using namespace Upp;
namespace Config {
INI_STRING(text, "default text", "Text parameter");
};
struct Test {
int x;
String a;
};
Test y = { 123, "123" };
CONSOLE_APP_MAIN
{
StdLogSetup(LOG_COUT|LOG_FILE);
SetIniFile(GetDataFile("test.ini"));
for(;;) {
LOG(Config::text);
LOG(GetIniInfoFormatted());
getchar();
SetIniFile(GetDataFile("test.ini"));
}
}