1.3 PSYX Calling Conventions
main()
function are placed on the stack using C-style calling conventions.
The parameters are a four-character (long word) message type, a short word modifier (which is rarely useful), a pointer to message-specific data, and the (long word) ID by which the PSYX was called. The return value should be a short word boolean value: TRUE
(i.e. non-zero) if the PSYX knows and accepts the message, FALSE
otherwise.
Here is an example prototype:
short main(long msg, short mod, void *msgData, long id);
Note: Since C-style calling conventions are used, you may omit theid
parameter if it is irrelevant to your PSYX implementation.
Generated with CERN WebMaker