04-01-2024, 04:32 AM
|
#1 |
|
Human being with feelings
Join Date: Mar 2021
Posts: 80
|
Some reaper api functions (ie SetThemeColor) are too generically named and pose an easy potential for naming conflicts with other imports/includes.
Please add a Reaper_ prefix or a Reaper:: namespace. TY! |
|
|
04-01-2024, 07:13 PM
|
#2 |
|
Administrator
Join Date: Jan 2005
Location: NYC
Posts: 16,809
|
You could easily add a namespace around the #include "reaper_plugin_functions.h" no?
We can add some preprocessor help to make it easier. In the next release you'll be able to do: Code:
#define REAPERAPI_FUNCNAME(x) REAPER_##x #include "reaper_plugin_function.h" REAPER_SetThemeColor(...) Last edited by Justin; 04-01-2024 at 07:35 PM. |
|
|
![]() |
| Thread Tools | |
|
|