diff --git a/core/panda/ObjectFactory.h b/core/panda/ObjectFactory.h index 87bc307..3dd557f 100644 --- a/core/panda/ObjectFactory.h +++ b/core/panda/ObjectFactory.h @@ -157,7 +157,7 @@ class PANDA_CORE_API RegisterModule #define EXPAND_MACRO(x) STRINGIFY_MACRO(x) #define STRINGIFY_MACRO(x) #x -#define REGISTER_MODULE panda::RegisterModule(EXPAND_MACRO(TARGET_FILE)) +#define REGISTER_MODULE panda::RegisterModule(EXPAND_MACRO(TARGET)) // This class is used by RegisterModule to automatically unregister a module when unloading a library class PANDA_CORE_API ModuleHandle