Cycling74 / min-api

High-level C++-language application programming interface for Max
MIT License
54 stars 23 forks source link

max name wasn't being passed in the correct location #158

Closed x37v closed 4 years ago

x37v commented 4 years ago

the signature for the method being called is : void wrap_as_max_external(const char* cppname, const char* maxname, void* resources, min_class_type* instance = nullptr) {

MIN_EXTERNAL_CUSTOM was passing #maxname for the cppname arg and __FILE__ for the maxname. In practice, this updated version allows me to call:

MIN_EXTERNAL_CUSTOM(myclass, whateveriwant~) and then in max (if the project is named correctly) have an object called whateveriwant~