I am just learning to make a Stata plugin, and need to print from inside the plugin, at least for debugging. I find that SF_display only takes a single string argument, so it is work to print the value of a number. printf seems to work - but only if the plugin has a non-zero return. That seems very strange, but I have gone back and forth a few times and "return(90)" shows the printf output in the log file, while with "return(0)" the printf output disappears. My actual calculations are in fortran, and are called from a C wrapper that is almost exactly like the "sum.c" example in the docs.. It works, but there a some odd values returned I would like to debug. Of course I would even more like to use the write statement in fortran, but without a fortran main program it doesn't seem possible to do any I/O. So, any suggestions on how to display some values?
-
Login or Register
- Log in with
Comment