mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-07-11 22:03:01 -06:00
.cpp
git-svn-id: svn://ultimatepp.org/upp/trunk@8524 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
e95b89bb35
commit
b39b4b1755
2 changed files with 5 additions and 1 deletions
|
|
@ -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"; }
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue