merge
1 files changed, 2 insertions(+), 1 deletions(-)

M Pure-Data/pd.cpp
M Pure-Data/pd.cpp +2 -1
@@ 18,6 18,7 @@ class Class;
 
 using Inlet = std::unique_ptr<t_inlet, void(*)(t_inlet*)>;
 using Outlet = std::unique_ptr<t_outlet, void(*)(t_outlet*)>;
+using PdBytes = std::unique_ptr<char, decltype(freebytes)>;
 
 struct PdBytes {
 	void *ptr;

          
@@ 369,7 370,7 @@ t_class* Declare(std::string name, krt_c
 #define F(CLASS) \
 extern "C" krt_class* CLASS ## _GetClassData(); \
 std::unique_ptr<Class> CLASS ## _Factory; \
-static void CLASS ## _Constructor(t_symbol* s, int n, t_atom *a) { CLASS ## _Factory->Construct(s,n,a); }\
+static void* CLASS ## _Constructor(t_symbol* s, int n, t_atom *a) { return CLASS ## _Factory->Construct(s,n,a); }\
 static void CLASS ## _Declare() {\
 	auto k = CLASS ## _GetClassData();\
 	auto tnew = (t_newmethod) CLASS ## _Constructor;\