Go Back   Cockos Incorporated Forums > REAPER Forums > REAPER Bug Reports

Reply
 
Thread Tools
Old 04-01-2024, 04:32 AM   #1
Gruust
Human being with feelings
 
Join Date: Mar 2021
Posts: 79
Default Reaper API needs prefix/namespace to avoid conflicts

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!
Gruust is offline   Reply With Quote
Old 04-01-2024, 07:13 PM   #2
Justin
Administrator
 
Justin's Avatar
 
Join Date: Jan 2005
Location: NYC
Posts: 16,335
Default

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.
Justin is offline   Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 09:17 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.