ultimatepp/reference/INI/INI2.cpp
cxl ad7f1c8c69 reference: Demonstration of .ini helpers INI_BOOL, INI_STRING, INI_INT
git-svn-id: svn://ultimatepp.org/upp/trunk@5085 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2012-06-28 22:35:37 +00:00

21 lines
305 B
C++

#include <Core/Core.h>
using namespace Upp;
// referencing INI_* variables from another file (or header)
namespace Config {
extern IniBool flag1;
extern IniBool flag2;
extern IniString text;
extern IniInt number;
};
void ExternalFn()
{
LOG("text accessed from another file: " << Config::text);
}