All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
thisPlugin.h
1//
2// Copyright 2016 Pixar
3//
4// Licensed under the terms set forth in the LICENSE.txt file available at
5// https://openusd.org/license.
6//
7#ifndef PXR_BASE_PLUG_THIS_PLUGIN_H
8#define PXR_BASE_PLUG_THIS_PLUGIN_H
9
10#include "pxr/pxr.h"
11#include "pxr/base/plug/registry.h"
12#include "pxr/base/tf/preprocessorUtilsLite.h"
13
14PXR_NAMESPACE_OPEN_SCOPE
15
20#ifndef PLUG_THIS_PLUGIN_NAME
21#define PLUG_THIS_PLUGIN_NAME MFB_PACKAGE_NAME
22#endif
23
28#define PLUG_THIS_PLUGIN \
29 PlugRegistry::GetInstance().GetPluginWithName(\
30 TF_PP_STRINGIZE(PLUG_THIS_PLUGIN_NAME))
31
32PXR_NAMESPACE_CLOSE_SCOPE
33
34#endif // PXR_BASE_PLUG_THIS_PLUGIN_H