[2020-02] Fix leak in assembly-specific dllmap lookups (#21053)
[mono-project.git] / mono / metadata / mono-config-dirs.c
blobb526b414c13f6b3920330cd545ee8af78eaeb937
1 /**
2 * \file
4 * Copyright 2015 Xamarin Inc (http://www.xamarin.com)
5 * Licensed under the MIT license. See LICENSE file in the project root for full license information.
6 */
8 /*
9 * This file contains functions to return the values of various directories defined in Makefile.am.
12 #include <mono/metadata/mono-config-dirs.h>
14 const char*
15 mono_config_get_assemblies_dir (void)
17 #ifdef MONO_ASSEMBLIES
18 return MONO_ASSEMBLIES;
19 #else
20 return NULL;
21 #endif
24 const char*
25 mono_config_get_cfg_dir (void)
27 #ifdef MONO_CFG_DIR
28 return MONO_CFG_DIR;
29 #else
30 return NULL;
31 #endif
34 const char*
35 mono_config_get_bin_dir (void)
37 #ifdef MONO_BINDIR
38 return MONO_BINDIR;
39 #else
40 return NULL;
41 #endif
44 const char*
45 mono_config_get_reloc_lib_dir (void)
47 #ifdef MONO_RELOC_LIBDIR
48 return MONO_RELOC_LIBDIR;
49 #else
50 return NULL;
51 #endif