- Timestamp:
- May 30, 2006, 9:09:21 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/gui/src/lib/gui/gl_gui/signal_connector.h
r7990 r7991 64 64 65 65 66 67 /** 68 * @brief declares a new Signal. 69 * @param SignalName the Name of the Signal. 70 */ 71 #define DeclareSignal3(SignalName, param0, param1, param2) \ 72 DeclareSignalBegin(SignalName) \ 73 void SignalName (param0 val0, param1 val1, param2 val2) { \ 74 for (unsigned int i = 0; i < SignalName ## connected .size(); i++) \ 75 SignalName ## connected[i] (val0, val1, val2); \ 76 }\ 77 DeclareSignalEnd(SignalName) 78 79 /** 80 * @brief declares a new Signal. 81 * @param SignalName the Name of the Signal. 82 */ 83 #define DeclareSignal4(SignalName, param0, param1, param2, param3) \ 84 DeclareSignalBegin(SignalName) \ 85 void SignalName (param0 val0, param1 val1, param2 val2, param3 val3) { \ 86 for (unsigned int i = 0; i < SignalName ## connected .size(); i++) \ 87 SignalName ## connected[i] (val0, val1, val2, val3); \ 88 }\ 89 DeclareSignalEnd(SignalName) 90 91 92 /** 93 * @brief declares a new Signal. 94 * @param SignalName the Name of the Signal. 95 */ 96 #define DeclareSignal5(SignalName, param0, param1, param2, param3, param4) \ 97 DeclareSignalBegin(SignalName) \ 98 void SignalName (param0 val0, param1 val1, param2 val2, param3 val3, param4 val4) { \ 99 for (unsigned int i = 0; i < SignalName ## connected .size(); i++) \ 100 SignalName ## connected[i] (val0, val1, val2, val3, val4); \ 101 }\ 102 DeclareSignalEnd(SignalName) 103 104 66 105 /** 67 106 * @brief selects a Signal.
Note: See TracChangeset
for help on using the changeset viewer.