Bug 2166 - Remove unnecessary token pasting from macros CompilerCompatibility
authorPeter Fordham <peter.fordham@gmail.com>
Fri, 05 Mar 2010 16:30:46 -0800
branchCompilerCompatibility
changeset 53 0209b9093082
parent 52 4f66279b1086
child 54 b218e2134300
Bug 2166 - Remove unnecessary token pasting from macros
webengine/webkitutils/stmgesturefw/src/stateengine.cpp
--- a/webengine/webkitutils/stmgesturefw/src/stateengine.cpp	Thu Mar 04 15:29:28 2010 -0800
+++ b/webengine/webkitutils/stmgesturefw/src/stateengine.cpp	Fri Mar 05 16:30:46 2010 -0800
@@ -39,12 +39,12 @@
   not behave correctly.
 
  */
-/*! Add macro with token pasting to make creation of the state machine tables easier
+/*! Add macro without token pasting to make creation of the state machine tables easier
    and removing the necessity to write the classname twice.
    Maybe there would be some better way to do this using templates and typedefs?
  */
-#define CND(x) isF<CStateEngine,&CStateEngine::##x>
-#define ACT(x) aF<CStateEngine,&CStateEngine::##x>
+#define CND(x) isF<CStateEngine,&CStateEngine::x>
+#define ACT(x) aF<CStateEngine,&CStateEngine::x>
 
 /*********************************************************************************
  * empty statedef as a dummy entry