core: add a trigger initializer macro
struct trigger is about to get a new field, and it's mandatory that this field is specified in all initializers. Let's introduce a macro to avoid adding every new field to all the initializers and at the same time keep the benefits of static initialization. Also while we're at it fix `lbox_trigger_reset` setting all trigger fileds manually. Part-of #4264 NO_DOC=refactoring NO_CHANGELOG=refactoring NO_TEST=refactoring
Showing
- src/box/alter.cc 16 additions, 64 deletionssrc/box/alter.cc
- src/box/lua/call.c 1 addition, 3 deletionssrc/box/lua/call.c
- src/box/lua/space.cc 1 addition, 3 deletionssrc/box/lua/space.cc
- src/box/vinyl.c 1 addition, 3 deletionssrc/box/vinyl.c
- src/lib/core/fiber.c 1 addition, 3 deletionssrc/lib/core/fiber.c
- src/lib/core/trigger.h 10 additions, 0 deletionssrc/lib/core/trigger.h
- src/lua/trigger.c 2 additions, 3 deletionssrc/lua/trigger.c
Loading
Please register or sign in to comment