MCPcopy Create free account
hub / github.com/TelegramMessenger/cocoon / process_integer

Function process_integer

runners/helpers/ValidateRequest.cpp:824–829  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

822}
823
824static td::Status process_integer(Ctx &ctx) {
825 if (!ctx.is_integer()) {
826 return td::Status::Error(ton::ErrorCode::protoviolation, PSTRING() << ctx.path() << " must be an integer");
827 }
828 return td::Status::OK();
829}
830
831static td::Status process_boolean(Ctx &ctx) {
832 if (!ctx.is_boolean()) {

Callers

nothing calls this directly

Calls 1

is_integerMethod · 0.45

Tested by

no test coverage detected