aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/messagebus/config/codegen.h
blob: 97ddada0055cb3e253fcf8e464ea4cd57d33ec9d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
#pragma once

#define COMMA ,

#define STRUCT_FIELD_GEN(name, type, ...) type name;

#define STRUCT_FIELD_INIT(name, type, defa) name(defa)
#define STRUCT_FIELD_INIT_DEFAULT(name, type, ...) name()

#define STRUCT_FIELD_PRINT(name, ...) ss << #name << "=" << name << "\n";