-
Notifications
You must be signed in to change notification settings - Fork 234
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
documentation for XS in C lacks include file information #1141
Comments
Another confusing thing, the example for xsmcGet uses xsVars, why not xsmcVars? This snippet doesn't work unless one includes both xsmc.h and xs.h
|
In short, either include "xsmc.h" or "xs.h" depending on which set of macros you are using. The example above should use The doc has been updated to adress both of these points. Thank you. |
The BTW, instead of undefining xsXXX macros in xsmc.h please consider defining them to produce a "do not use" compilation error. As it is, if one uses certain xsXXX macros the compilation succeeds or produces strange errors because the compiler assumes it's an undeclared external function. |
Nice idea. What's a good way to achieve that using portable C? |
Good question... |
Describe
There is no information in the XS in C document about include files, i.e. what to
#include
. In files in the moddable tree I see includes ofxs.h
,xsmc.h
,xsHost.h
,mc.xs.h
and more. Please provide info on how xs and xsmc interoperate and what to include when & where. I just ran into the issue thatxsmc.h
seemingly undef's xsDefine, so includexs.h
andxsmc.h
in that order causesxsDefine
to be missing. Maybe including both is a no-no? Help...The text was updated successfully, but these errors were encountered: