Update of --mem-stats flag fix: leaving MEM_STATS definition only in jerry-core.

This commit is contained in:
Ruben Ayrapetyan
2015-03-30 13:30:26 +03:00
parent ac7edde72e
commit eb7dce272a
8 changed files with 51 additions and 50 deletions
+9
View File
@@ -13,6 +13,8 @@
* limitations under the License.
*/
#include <stdio.h>
#include "deserializer.h"
#include "ecma-extension.h"
#include "ecma-gc.h"
@@ -269,6 +271,13 @@ jerry_init (jerry_flag_t flags) /**< combination of Jerry flags */
{
jerry_flags = flags;
#ifndef MEM_STATS
if (flags & JERRY_FLAG_MEM_STATS)
{
printf ("Ignoring memory statistics option because of '!MEM_STATS' build configuration.\n");
}
#endif /* !MEM_STATS */
mem_init ();
deserializer_init ();
ecma_init ();