Added MONO_API macro to annotate and control visibility of public (exported) APIs.
authortritao <ripzonetriton@gmail.com>
Wed, 3 Jul 2013 23:16:31 +0000 (00:16 +0100)
committertritao <ripzonetriton@gmail.com>
Wed, 3 Jul 2013 23:16:31 +0000 (00:16 +0100)
commit4beada28924879ede55f3bf8b3f5b798d0f4637e
tree6a4441c3dd2235a66cb660b5a6dfc5514ccdf5d8
parent2bc6e4b228696d7831932ee46214f4b21cfa3061
Added MONO_API macro to annotate and control visibility of public (exported) APIs.

This is especially useful for Windows since this way there is no need to maintain a separate .def file with exports which is usually out-of-sync with the latest revisions. This could also be used to control visibility with GCC/Clang so there would be no need for MONO_INTERNAL (could be removed while changing the default visibility to hidden).
58 files changed:
mono/metadata/appdomain.h
mono/metadata/assembly.h
mono/metadata/cil-coff.h
mono/metadata/class-internals.h
mono/metadata/class.h
mono/metadata/cominterop.h
mono/metadata/debug-helpers.h
mono/metadata/debug-mono-symfile.h
mono/metadata/domain-internals.h
mono/metadata/environment.h
mono/metadata/exception.h
mono/metadata/gc-internal.h
mono/metadata/image.h
mono/metadata/loader.h
mono/metadata/marshal.c
mono/metadata/marshal.h
mono/metadata/mempool.h
mono/metadata/metadata-internals.h
mono/metadata/metadata.h
mono/metadata/monitor.h
mono/metadata/mono-config.h
mono/metadata/mono-debug-debugger.h
mono/metadata/mono-debug.h
mono/metadata/mono-gc.h
mono/metadata/mono-hash.h
mono/metadata/mono-mlist.h
mono/metadata/object-internals.h
mono/metadata/object.h
mono/metadata/opcodes.h
mono/metadata/profiler.h
mono/metadata/reflection.h
mono/metadata/security-core-clr.h
mono/metadata/threadpool.h
mono/metadata/threads-types.h
mono/metadata/threads.h
mono/metadata/verify.h
mono/mini/debug-mini.h
mono/mini/decompose.c
mono/mini/jit.h
mono/mini/method-to-ir.c
mono/mini/mini.h
mono/utils/mono-codeman.h
mono/utils/mono-counters.h
mono/utils/mono-digest.h
mono/utils/mono-dl-fallback.h
mono/utils/mono-embed.h
mono/utils/mono-error.h
mono/utils/mono-logger.h
mono/utils/mono-math.h
mono/utils/mono-mmap.h
mono/utils/mono-path.h
mono/utils/mono-poll.h
mono/utils/mono-property-hash.h
mono/utils/mono-publib.h
mono/utils/mono-semaphore.h
mono/utils/mono-uri.h
mono/utils/monobitset.h
mono/utils/strenc.h