macs Posted April 10, 2016 Share Posted April 10, 2016 Hi all, I know that I can access global variables that I defined in 'global definitions.pmh' by pshm->P[variableName] in C, but this doesn't work for global array by pshm->P[arrayName(index)]. I know there must be a way to access them, please is there are somebody can tell me? Thank you! Link to comment Share on other sites More sharing options...
steve.milici Posted April 11, 2016 Share Posted April 11, 2016 You would use pshm->P[variableName+index]. Keep in mind you must maintain valid index range values. Link to comment Share on other sites More sharing options...
steve.milici Posted April 11, 2016 Share Posted April 11, 2016 For more options take a look at our training slides for Power PMAC on the Forum: "http://forums.deltatau.com/filedepot/download.php?f=Power PMAC/Training Slides/Class Slides/Power PMAC 5-Day Training (Plus Optional GUI Training).pdf" There is a complete section on C-programming. Link to comment Share on other sites More sharing options...
Recommended Posts