mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-17 06:06:00 -06:00
29 lines
525 B
C++
29 lines
525 B
C++
#include <Core/Core.h>
|
|
#include <CppBase/CppBase.h>
|
|
|
|
using namespace Upp;
|
|
|
|
CONSOLE_APP_MAIN
|
|
{
|
|
StdLogSetup(LOG_FILE|LOG_COUT);
|
|
|
|
String path = GetDataFile("test.in");
|
|
PPSync(GetFileFolder(path));
|
|
|
|
Cpp cpp;
|
|
FileIn in(path);
|
|
cpp.Preprocess(path, in, path);
|
|
|
|
String s = cpp.output;
|
|
String opath = GetDataFile("test.out");
|
|
|
|
LOG("======================");
|
|
LOG(cpp.output);
|
|
|
|
#ifdef flagSAVE
|
|
SaveFile(opath, s);
|
|
#else
|
|
ASSERT(LoadFile(opath) == s);
|
|
#endif
|
|
LOG("===================== OK");
|
|
}
|