Skip to content

Instantly share code, notes, and snippets.

@ysoftware
Created June 5, 2019 12:06
Show Gist options
  • Save ysoftware/25cf25875bd5b33685d22d73ddb73d9b to your computer and use it in GitHub Desktop.
Save ysoftware/25cf25875bd5b33685d22d73ddb73d9b to your computer and use it in GitHub Desktop.
Testing-1
#if DEBUG
TABLE cdp {
...
void print() const {
eosio::print("#"); eosio::print(id);
eosio::print(" c: "); eosio::print(collateral);
eosio::print(" d: "); eosio::print(debt);
eosio::print(" icr: "); eosio::print(icr);
eosio::print(" time: "); eosio::print(modified_round);
eosio::print("\n");
}
}
#endif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment