Remove legacy jerry_get_memory_limits API function and unused configuration macros (#2329)
JerryScript-DCO-1.0-Signed-off-by: Akos Kiss akiss@inf.u-szeged.hu
This commit is contained in:
@@ -665,47 +665,6 @@ main (void)
|
||||
- [jerry_parse_and_save_literals](#jerry_parse_and_save_literals)
|
||||
|
||||
|
||||
## jerry_get_memory_limits
|
||||
|
||||
**Summary**
|
||||
|
||||
Gets configured memory limits of JerryScript.
|
||||
|
||||
**Prototype**
|
||||
|
||||
```c
|
||||
void
|
||||
jerry_get_memory_limits (size_t *out_data_bss_brk_limit_p,
|
||||
size_t *out_stack_limit_p);
|
||||
```
|
||||
|
||||
- `out_data_bss_brk_limit_p` - out parameter, that gives the maximum size of data + bss + brk sections.
|
||||
- `out_stack_limit_p` - out parameter, that gives the maximum size of the stack.
|
||||
|
||||
**Example**
|
||||
|
||||
[doctest]: # ()
|
||||
|
||||
```c
|
||||
#include "jerryscript.h"
|
||||
|
||||
int
|
||||
main (void)
|
||||
{
|
||||
jerry_init (JERRY_INIT_EMPTY);
|
||||
|
||||
size_t stack_limit;
|
||||
size_t data_bss_brk_limit;
|
||||
jerry_get_memory_limits (&stack_limit, &data_bss_brk_limit);
|
||||
}
|
||||
```
|
||||
|
||||
**See also**
|
||||
|
||||
- [jerry_init](#jerry_init)
|
||||
- [jerry_cleanup](#jerry_cleanup)
|
||||
|
||||
|
||||
## jerry_get_memory_stats
|
||||
|
||||
**Summary**
|
||||
|
||||
Reference in New Issue
Block a user