Skip to content

Commit 4242f73

Browse files
add NO_PULSE toggle
1 parent 02e0315 commit 4242f73

2 files changed

Lines changed: 9 additions & 0 deletions

File tree

src/contract_core/contract_def.h

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -248,6 +248,8 @@
248248
#define CONTRACT_STATE2_TYPE QDUEL2
249249
#include "contracts/QDuel.h"
250250

251+
#ifndef NO_PULSE
252+
251253
#undef CONTRACT_INDEX
252254
#undef CONTRACT_STATE_TYPE
253255
#undef CONTRACT_STATE2_TYPE
@@ -258,6 +260,8 @@
258260
#define CONTRACT_STATE2_TYPE PULSE2
259261
#include "contracts/Pulse.h"
260262

263+
#endif
264+
261265
// new contracts should be added above this line
262266

263267
#ifdef INCLUDE_CONTRACT_TEST_EXAMPLES
@@ -369,7 +373,9 @@ constexpr struct ContractDescription
369373
{"QRP", 199, 10000, sizeof(IPO)}, // proposal in epoch 197, IPO in 198, construction and first use in 199
370374
{"QTF", 199, 10000, sizeof(QTF)}, // proposal in epoch 197, IPO in 198, construction and first use in 199
371375
{"QDUEL", 199, 10000, sizeof(QDUEL)}, // proposal in epoch 197, IPO in 198, construction and first use in 199
376+
#ifndef NO_PULSE
372377
{"PULSE", 202, 10000, sizeof(PULSE)}, // proposal in epoch 200, IPO in 201, construction and first use in 202
378+
#endif
373379
// new contracts should be added above this line
374380
#ifdef INCLUDE_CONTRACT_TEST_EXAMPLES
375381
{"TESTEXA", 138, 10000, sizeof(TESTEXA)},
@@ -489,7 +495,9 @@ static void initializeContracts()
489495
REGISTER_CONTRACT_FUNCTIONS_AND_PROCEDURES(QRP);
490496
REGISTER_CONTRACT_FUNCTIONS_AND_PROCEDURES(QTF);
491497
REGISTER_CONTRACT_FUNCTIONS_AND_PROCEDURES(QDUEL);
498+
#ifndef NO_PULSE
492499
REGISTER_CONTRACT_FUNCTIONS_AND_PROCEDURES(PULSE);
500+
#endif
493501
// new contracts should be added above this line
494502
#ifdef INCLUDE_CONTRACT_TEST_EXAMPLES
495503
REGISTER_CONTRACT_FUNCTIONS_AND_PROCEDURES(TESTEXA);

src/qubic.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#define SINGLE_COMPILE_UNIT
22

33
// #define OLD_QTRY
4+
// #define NO_PULSE
45

56
//#define INCLUDE_CONTRACT_TEST_EXAMPLES
67

0 commit comments

Comments
 (0)