Skip to content

Commit

Permalink
Handle 'too many characters in constant' compiler error on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
keli committed Jan 17, 2025
1 parent 0fbf5cf commit b270047
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions ctp.i
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,18 @@ def _swig_repr(self):
%feature("director") CThostFtdcMdSpi;
%feature("director") CThostFtdcTraderSpi;

// Ignore problematic character constants that cause compilation issues on Windows
%ignore THOST_FTDC_FTC_BankLaunchBankToBroker;
%ignore THOST_FTDC_FTC_BrokerLaunchBankToBroker;
%ignore THOST_FTDC_FTC_BankLaunchBrokerToBank;
%ignore THOST_FTDC_FTC_BrokerLaunchBrokerToBank;

// Additional constants to ignore
%ignore THOST_FTDC_VTC_BankBankToFuture;
%ignore THOST_FTDC_VTC_BankFutureToBank;
%ignore THOST_FTDC_VTC_FutureBankToFuture;
%ignore THOST_FTDC_VTC_FutureFutureToBank;

%include "ThostFtdcUserApiDataType.h"
%include "ThostFtdcUserApiStruct.h"
%include "ThostFtdcMdApi.h"
Expand Down

0 comments on commit b270047

Please sign in to comment.