VST 3 SDK VST 3.7 SDK for developing VST plug-in

Namespaces | Macros | Functions
vststructsizecheck.h File Reference
`#include "pluginterfaces/vst/ivstattributes.h"`
`#include "pluginterfaces/vst/ivstaudioprocessor.h"`
`#include "pluginterfaces/vst/ivstcomponent.h"`
`#include "pluginterfaces/vst/ivstcontextmenu.h"`
`#include "pluginterfaces/vst/ivsteditcontroller.h"`
`#include "pluginterfaces/vst/ivstevents.h"`
`#include "pluginterfaces/vst/ivsthostapplication.h"`
`#include "pluginterfaces/vst/ivstmessage.h"`
`#include "pluginterfaces/vst/ivstmidicontrollers.h"`
`#include "pluginterfaces/vst/ivstparameterchanges.h"`
`#include "pluginterfaces/vst/ivstplugview.h"`
`#include "pluginterfaces/vst/ivstprocesscontext.h"`
`#include "pluginterfaces/vst/ivstrepresentation.h"`
`#include "pluginterfaces/vst/ivstunits.h"`
`#include "pluginterfaces/vst/vstpresetkeys.h"`
`#include "pluginterfaces/vst/vsttypes.h"`
`#include "pluginterfaces/base/typesizecheck.h"`
`#include <cstdio>`

## Namespaces
namespace | Steinberg
namespace | Steinberg::Vst

## Macros
#define | SMTG_VST_COMPILE_TIME_STRUCT_CHECK 1
#define | SMTG_PRINT_TYPE_SIZE_ALIGN(T)

## Functions
| SMTG_TYPE_ALIGN_CHECK (PFactoryInfo, 4, 4, 4, 4) SMTG_TYPE_ALIGN_CHECK(PClassInfo
| SMTG_TYPE_ALIGN_CHECK (PClassInfo2, 4, 4, 4, 4) SMTG_TYPE_ALIGN_CHECK(PClassInfoW
| SMTG_TYPE_ALIGN_CHECK (ProcessSetup, 8, 1, 8, 8) SMTG_TYPE_ALIGN_CHECK(AudioBusBuffers
| SMTG_TYPE_ALIGN_CHECK (ProcessData, 8, 1, 4, 4) SMTG_TYPE_ALIGN_CHECK(BusInfo
| SMTG_TYPE_ALIGN_CHECK (RoutingInfo, 4, 1, 4, 4) SMTG_TYPE_ALIGN_CHECK(IContextMenuItem
| SMTG_TYPE_ALIGN_CHECK (ParameterInfo, 8, 1, 8, 8) SMTG_TYPE_ALIGN_CHECK(NoteOnEvent
| SMTG_TYPE_ALIGN_CHECK (NoteOffEvent, 4, 1, 4, 4) SMTG_TYPE_ALIGN_CHECK(DataEvent
| SMTG_TYPE_ALIGN_CHECK (PolyPressureEvent, 4, 1, 4, 4) SMTG_TYPE_ALIGN_CHECK(ChordEvent
| SMTG_TYPE_ALIGN_CHECK (ScaleEvent, 8, 1, 4, 4) SMTG_TYPE_ALIGN_CHECK(LegacyMIDICCOutEvent
| SMTG_TYPE_ALIGN_CHECK (Event, 8, 1, 8, 8) SMTG_TYPE_ALIGN_CHECK(NoteExpressionValueDescription
| SMTG_TYPE_ALIGN_CHECK (NoteExpressionValueEvent, 8, 1, 4, 8) SMTG_TYPE_ALIGN_CHECK(NoteExpressionTextEvent
| SMTG_TYPE_ALIGN_CHECK (NoteExpressionTypeInfo, 8, 1, 8, 8) SMTG_TYPE_ALIGN_CHECK(KeyswitchInfo
| SMTG_TYPE_ALIGN_CHECK (FrameRate, 4, 1, 4, 4) SMTG_TYPE_ALIGN_CHECK(Chord
| SMTG_TYPE_ALIGN_CHECK (ProcessContext, 8, 1, 8, 8) SMTG_TYPE_ALIGN_CHECK(RepresentationInfo
| SMTG_TYPE_ALIGN_CHECK (UnitInfo, 4, 1, 4, 4) SMTG_TYPE_ALIGN_CHECK(ProgramListInfo
void | printStructSizes ()

## Macro Definition Documentation

## ◆ SMTG_VST_COMPILE_TIME_STRUCT_CHECK

#define SMTG_VST_COMPILE_TIME_STRUCT_CHECK 1

## ◆ SMTG_PRINT_TYPE_SIZE_ALIGN

#define SMTG_PRINT_TYPE_SIZE_ALIGN | ( |  | T | ) |

Value:
{ \
auto len = strlen (#T); \
std::printf (#T); \
for (auto i = len; i < 35; ++i) \
std::printf (" "); \
std::printf ("size = %3zu | align = %2zu\n", sizeof (T), alignof (T)); \
}
Steinberg::Vst::printf
std::u16string printf(const char8 *format,...)
Definition: testbase.cpp:199
Empty

Copyright © Steinberg Media Technologies GmbH. All Rights Reserved. This documentation is under this license.