diff --git a/src/dobject.h b/src/dobject.h index 3c4b23248..22ebf1305 100644 --- a/src/dobject.h +++ b/src/dobject.h @@ -176,7 +176,7 @@ protected: \ ExportedNatives(ExportedNatives&&) = delete; #define VMEXPORT_NATIVES_FUNC(func) \ - template ret func(void *ptr, args ... arglist) { return static_cast(ptr)->object::##func(arglist...); } + template ret func(void *ptr, args ... arglist) { return static_cast(ptr)->object::func(arglist...); } #define VMEXPORT_NATIVES_END(cls) };