|
Post by EmilHalim on Mar 26, 2016 10:30:55 GMT -5
Hi all
How to call a function and path it's args from another one in the same PlugIn?
|
|
|
Post by Tom Mulgrew on Mar 26, 2016 23:48:20 GMT -5
Hi all How to call a function and path it's args from another one in the same PlugIn? Hi, Perhaps you could move the code that you want to call into a separate C/C++ function and call it from both of the plugin functions. void DoTheWork(int x, int y, float shoeSize) { // Do something ... }
void DLLFUNC Func_ThisBasicFunction(IDLL_Basic4GL_Runtime &basic4gl) { // Get BASIC function parameters from basic4gl ...
// Execute the shared code in "DoTheWork" DoTheWork(x, y, 12.0f);
// Do other stuff ... }
void DLLFUNC Func_OtherBasicFunction(IDLL_Basic4GL_Runtime &basic4gl) { // Get BASIC function parameters from basic4gl ...
// Execute the shared code in "DoTheWork" DoTheWork(5, 15, myShoeSize * 2.0f);
// Do other stuff ... }
|
|
|
Post by EmilHalim on Mar 27, 2016 9:35:54 GMT -5
Thanks Tom , for this work around solution.
|
|