pr_extern.rst (704B)
1 PR_EXTERN 2 ========= 3 4 Used to define the prototypes for functions or variables that are to be 5 exported from a shared library. 6 7 8 Syntax 9 ------ 10 11 .. code:: 12 13 #include <prtypes.h> 14 15 PR_EXTERN(type)prototype 16 17 18 Description 19 ----------- 20 21 :ref:`PR_EXTERN` is used to define externally visible routines and globals. 22 For syntax details for each platform, see 23 `prtypes.h <https://searchfox.org/mozilla-central/source/nsprpub/pr/include/prtypes.h>`__. 24 The macro includes the proper specifications to declare the target 25 ``extern`` and set up other required linkages. 26 27 .. warning:: 28 29 **Warning**: Some platforms do not allow the use of the underscore 30 character (_) as the first character of an exported symbol.