55
edits
m (→Function Names) |
|||
Line 128: | Line 128: | ||
* DLL entry points have their return type expanded within a JS_PUBLIC_API() macro call, to get the right Windows secret type qualifiers in the right places for all build variants. | * DLL entry points have their return type expanded within a JS_PUBLIC_API() macro call, to get the right Windows secret type qualifiers in the right places for all build variants. | ||
* Callback functions that might be called from a DLL are similarly macroized with JS_STATIC_DLL_CALLBACK (if the function otherwise would be static to hide its name) or JS_DLL_CALLBACK (this macro takes no type argument; it should be used after the return type and before the function name). | * Callback functions that might be called from a DLL are similarly macroized with JS_STATIC_DLL_CALLBACK (if the function otherwise would be static to hide its name) or JS_DLL_CALLBACK (this macro takes no type argument; it should be used after the return type and before the function name). | ||
== Data Types and Alignments == | |||
* Be aware that the code needs to compile and execute on several platforms, including 64 bits platforms. | |||
* Use size_t instead of uintN - on 64-bit systems, uintN is 32 bits, while size_t is 64 bits. |
edits