mirror of
https://github.com/jerryscript-project/jerryscript.git
synced 2025-12-15 16:29:21 +00:00
Fix mismatch in context getter/setter names of default port (#2554)
JerryScript-DCO-1.0-Signed-off-by: Akos Kiss akiss@inf.u-szeged.hu
This commit is contained in:
parent
4a0dd587fc
commit
a9c6364bce
@ -252,10 +252,10 @@ static jerry_context_t *current_context_p = NULL;
|
||||
* Set the current_context_p as the passed pointer.
|
||||
*/
|
||||
void
|
||||
jerry_port_default_set_context (jerry_context_t *context_p) /**< points to the created context */
|
||||
jerry_port_default_set_current_context (jerry_context_t *context_p) /**< points to the created context */
|
||||
{
|
||||
current_context_p = context_p;
|
||||
} /* jerry_port_default_set_context */
|
||||
} /* jerry_port_default_set_current_context */
|
||||
|
||||
/**
|
||||
* Get the current context.
|
||||
|
||||
@ -608,7 +608,7 @@ main (int argc,
|
||||
#ifdef JERRY_ENABLE_EXTERNAL_CONTEXT
|
||||
|
||||
jerry_context_t *context_p = jerry_create_context (512*1024, context_alloc, NULL);
|
||||
jerry_port_default_set_context (context_p);
|
||||
jerry_port_default_set_current_context (context_p);
|
||||
|
||||
#endif /* JERRY_ENABLE_EXTERNAL_CONTEXT */
|
||||
|
||||
|
||||
@ -26,10 +26,10 @@ static jerry_context_t *current_context_p = NULL;
|
||||
* Set the current_context_p as the passed pointer.
|
||||
*/
|
||||
void
|
||||
jerry_port_default_set_context (jerry_context_t *context_p) /**< points to the created context */
|
||||
jerry_port_default_set_current_context (jerry_context_t *context_p) /**< points to the created context */
|
||||
{
|
||||
current_context_p = context_p;
|
||||
} /* jerry_port_default_set_context */
|
||||
} /* jerry_port_default_set_current_context */
|
||||
|
||||
/**
|
||||
* Get the current context.
|
||||
|
||||
@ -37,7 +37,7 @@ bool jerry_port_default_is_abort_on_fail (void);
|
||||
jerry_log_level_t jerry_port_default_get_log_level (void);
|
||||
void jerry_port_default_set_log_level (jerry_log_level_t level);
|
||||
|
||||
void jerry_port_default_set_context (jerry_context_t *context_p);
|
||||
void jerry_port_default_set_current_context (jerry_context_t *context_p);
|
||||
|
||||
/**
|
||||
* @}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user