git-svn-id: svn://ultimatepp.org/upp/trunk@8524 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2015-06-08 04:39:15 +00:00
parent e95b89bb35
commit b39b4b1755
2 changed files with 5 additions and 1 deletions

View file

@ -20,9 +20,9 @@ const VectorMap<String, String>& GetNamespaceMacros();
const Index<String>& GetNamespaceEndMacros();
struct CppMacro : Moveable<CppMacro> {
String param;
String body;
byte md5[16];
String Define(const char *s);
void SetUndef() { body = "\x7f"; }

View file

@ -36,6 +36,10 @@ String CppMacro::Define(const char *s)
while(!p.IsEof() && !p.IsChar2('/', '/'))
p.SkipTerm();
body = String(b, p.GetPtr());
Md5Stream m;
m.Put(param);
m.Put(body);
m.Finish(md5);
}
catch(CParser::Error) {
return Null;