bagucode/clj-native — pull request #5 by philandstuff (2012-12-14 10:06:55+00:00)
Title: Testcase demonstrating return value of pointer-to-struct in static memory

This testcase exemplifies how to solve a problem I had been having with a function from Portmidi.
You can see further discussion about it at: https://groups.google.com/d/topic/overtone/U43eDb485aQ/discussion

The fact that the struct contains a further pointer (the const char *) had been tripping me up -- if you specify `char*` in the struct declaration in defclib, it breaks; you *need* `constchar*` instead.