C++ Parser, add your own macros here, no documentation? how to use?
Tobias Erbsland
terbsland at printsoft.ch
Fri Mar 18 10:51:08 UTC 2005
Hello
I wrote a serializer for a c++ project. The serializer requires two additions
to the class definition:
class X : public SerializableObject
{
SERIALIZABLE_OBJECT( X );
public:
(...)
private:
SERIALIZE int a;
SERIALIZE int b;
};
But the syntax parser complains always about the "SERIALIZE" macro, that is
defined as "#define SERIALIZE".
How can i teach the parser about the macro SERIALIZE. And btw, is there a easy
way to add SERIALIZABLE_OBJECT and SERIALIZE as new "user keyword" to the
syntax highlightling? Thats possible in many other IDE's.
best regards
Tobias
More information about the KDevelop-devel
mailing list