On the mathwork webpage for "Upgrading MEX-Files to Use 64-Bit API",under the heading "Update Arguments Used to Call Functions in the 64-Bit API," it shows that I might need to replace my current value with mw types (the example shows ints being replaced by mwSize).
If I wanted be able to compile to both 32 and 64 bit, would I have to maintain two matlab code versions (using the example, one with int values and the other with mwSize), or would the 64 bit data structures be "downcast" to the 32 bit types, so I would need to maintain only one codebase?
Best Answer