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

tarantool / tarantool / 12905862289
88%

Build:
DEFAULT BRANCH: master
Ran 22 Jan 2025 10:28AM UTC
Jobs 1
Files 518
Run time 2min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

22 Jan 2025 10:08AM UTC coverage: 87.369% (-0.003%) from 87.372%
12905862289

push

github

Buristan
say: replace panic macro with a function

This patch refactors the panic macro into a function to prevent
preprocessor conflicts. Previously, the panic macro in
`src/lib/core/say.h` could clash with LuaJIT's internal panic routine,
causing macro expansion issues and compilation failures. By using a
function instead, the patch resolves these conflicts and ensures
correct handling of panic calls.

Example of error:

Let’s assume we have the following situation in `say.h`:

```c
// say.h
...
...
```

And we have the following code in `another.c` that includes this header:

```c
// another.c
...
{
    global_State *g = G(L);
    ...
    // Try to call g->panic.
    // The preprocessor will replace g->panic with the panic macro, which will cause an error.
    g->panic("An error occurred!");
    ...
}
...
```

When you try to compile this code, you will get the following
compilation error:

```bash
error: ‘struct global_State’ has no member named ‘fprintf’
   xxx |     g->panic("An error occurred!");
```

Closes #5365

NO_DOC=refactoring
NO_TEST=refactoring
NO_CHANGELOG=refactoring

69657 of 123180 branches covered (56.55%)

5 of 5 new or added lines in 1 file covered. (100.0%)

50 existing lines in 20 files now uncovered.

102655 of 117496 relevant lines covered (87.37%)

2441738.3 hits per line

Uncovered Existing Lines

Lines Coverage ∆ File
1
85.15
-0.99% src/lib/small/small/slab_arena.c
1
96.12
-0.18% src/box/relay.cc
1
93.53
-0.13% src/box/txn_limbo.c
1
95.05
-0.31% src/box/raft.c
1
66.36
-0.63% src/lib/core/crash.c
1
91.68
-0.11% src/lib/swim/swim.c
2
95.84
-0.11% src/box/iproto.cc
2
89.24
-0.12% src/box/xrow.c
2
94.64
0.77% src/box/xrow_update_field.c
2
87.8
-0.08% src/box/vy_run.c
2
92.1
-0.05% src/box/vinyl.c
2
85.71
-9.52% src/lib/core/tt_sigaction.c
3
90.7
-0.22% src/box/applier.cc
3
92.81
-0.12% src/lib/core/fiber.c
3
22.64
-0.06% src/lib/uri/uri_parser.c
3
90.91
-0.03% src/box/box.cc
3
87.28
-0.09% src/box/alter.cc
4
93.31
-1.27% src/lib/swim/swim_io.c
5
95.69
-0.43% src/lib/msgpuck/msgpuck.h
8
60.42
-5.56% src/lib/core/fio.c
Jobs
ID Job ID Ran Files Coverage
1 12905862289.1 22 Jan 2025 10:28AM UTC 518
87.37
GitHub Action Run
Source Files on build 12905862289
  • Tree
  • List 518
  • Changed 450
  • Source Changed 0
  • Coverage Changed 36
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • 145dcb22 on github
  • Prev Build on master (#12889005472)
  • Next Build on master (#12927857396)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc