• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

tarantool / tarantool / 28179435606

25 Jun 2026 02:59PM UTC coverage: 87.687% (-0.02%) from 87.703%
28179435606

push

github

sergepetrenko
trivia: added TOSTR() util

The `TOSTR` helper macro for stringization via snprintf-functions
to dynamically allocated buffer is introduced.

It's name referred to existing stringization functions, which are write
to dynamically allocated buffer and are named `xxx_str()` in most cases.

The purpose of the new macro and this PR are:
- to speedup and to simplify the writing of new `xxx_str()` functions
  and to allow more optimal use of static buffer space for them.
- to make unified implementation for them with painstaking error handling.
- to make possible dynamically stringization, when `xxx_str()` function
  is absent. `TOSTR(xxx_snprint, xxx)` macro may be used explicitly.
  In particular, this may be very helpful for testing and debugging.
- to encourage the use of snprint functions as a common way for
  stringization.

NO_CHANGELOG=internal
NO_DOC=internal

70898 of 119184 branches covered (59.49%)

16 of 17 new or added lines in 16 files covered. (94.12%)

547 existing lines in 17 files now uncovered.

106463 of 121412 relevant lines covered (87.69%)

1405801.89 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

84.26
/src/box/sql/mem.c


Source Not Available

STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc