|
248 | 248 | #define CONTRACT_STATE2_TYPE QDUEL2 |
249 | 249 | #include "contracts/QDuel.h" |
250 | 250 |
|
| 251 | +#ifndef NO_PULSE |
| 252 | + |
251 | 253 | #undef CONTRACT_INDEX |
252 | 254 | #undef CONTRACT_STATE_TYPE |
253 | 255 | #undef CONTRACT_STATE2_TYPE |
|
258 | 260 | #define CONTRACT_STATE2_TYPE PULSE2 |
259 | 261 | #include "contracts/Pulse.h" |
260 | 262 |
|
| 263 | +#endif |
| 264 | + |
261 | 265 | // new contracts should be added above this line |
262 | 266 |
|
263 | 267 | #ifdef INCLUDE_CONTRACT_TEST_EXAMPLES |
@@ -369,7 +373,9 @@ constexpr struct ContractDescription |
369 | 373 | {"QRP", 199, 10000, sizeof(IPO)}, // proposal in epoch 197, IPO in 198, construction and first use in 199 |
370 | 374 | {"QTF", 199, 10000, sizeof(QTF)}, // proposal in epoch 197, IPO in 198, construction and first use in 199 |
371 | 375 | {"QDUEL", 199, 10000, sizeof(QDUEL)}, // proposal in epoch 197, IPO in 198, construction and first use in 199 |
| 376 | +#ifndef NO_PULSE |
372 | 377 | {"PULSE", 202, 10000, sizeof(PULSE)}, // proposal in epoch 200, IPO in 201, construction and first use in 202 |
| 378 | +#endif |
373 | 379 | // new contracts should be added above this line |
374 | 380 | #ifdef INCLUDE_CONTRACT_TEST_EXAMPLES |
375 | 381 | {"TESTEXA", 138, 10000, sizeof(TESTEXA)}, |
@@ -489,7 +495,9 @@ static void initializeContracts() |
489 | 495 | REGISTER_CONTRACT_FUNCTIONS_AND_PROCEDURES(QRP); |
490 | 496 | REGISTER_CONTRACT_FUNCTIONS_AND_PROCEDURES(QTF); |
491 | 497 | REGISTER_CONTRACT_FUNCTIONS_AND_PROCEDURES(QDUEL); |
| 498 | +#ifndef NO_PULSE |
492 | 499 | REGISTER_CONTRACT_FUNCTIONS_AND_PROCEDURES(PULSE); |
| 500 | +#endif |
493 | 501 | // new contracts should be added above this line |
494 | 502 | #ifdef INCLUDE_CONTRACT_TEST_EXAMPLES |
495 | 503 | REGISTER_CONTRACT_FUNCTIONS_AND_PROCEDURES(TESTEXA); |
|
0 commit comments