Added console message implementation for ESP8266. (#1398)
JerryScript-DCO-1.0-Signed-off-by: Slavey Karadzhov slaff@attachix.com
This commit is contained in:
@@ -18,6 +18,7 @@
|
|||||||
#include <stdarg.h>
|
#include <stdarg.h>
|
||||||
|
|
||||||
#include "jerry-core/jerry-port.h"
|
#include "jerry-core/jerry-port.h"
|
||||||
|
extern int ets_putc (int);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Provide console message implementation for the engine.
|
* Provide console message implementation for the engine.
|
||||||
@@ -28,8 +29,7 @@ jerry_port_console (const char *format, /**< format string */
|
|||||||
{
|
{
|
||||||
va_list args;
|
va_list args;
|
||||||
va_start (args, format);
|
va_start (args, format);
|
||||||
/* TODO, uncomment when vprint link is ok */
|
ets_vprintf (ets_putc, format, args);
|
||||||
/* vfprintf (stdout, format, args); */
|
|
||||||
va_end (args);
|
va_end (args);
|
||||||
} /* jerry_port_console */
|
} /* jerry_port_console */
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user