mirror of
https://github.com/DarkFlippers/unleashed-firmware.git
synced 2024-11-26 10:26:09 +03:00
26 lines
454 B
C
26 lines
454 B
C
|
/*
|
||
|
* Copyright (c) 2014 Cesanta Software Limited
|
||
|
* All rights reserved
|
||
|
*/
|
||
|
|
||
|
#ifndef MJS_GC_PUBLIC_H_
|
||
|
#define MJS_GC_PUBLIC_H_
|
||
|
|
||
|
#include "mjs_core_public.h"
|
||
|
|
||
|
#if defined(__cplusplus)
|
||
|
extern "C" {
|
||
|
#endif /* __cplusplus */
|
||
|
|
||
|
/*
|
||
|
* Perform garbage collection.
|
||
|
* Pass true to full in order to reclaim unused heap back to the OS.
|
||
|
*/
|
||
|
void mjs_gc(struct mjs* mjs, int full);
|
||
|
|
||
|
#if defined(__cplusplus)
|
||
|
}
|
||
|
#endif /* __cplusplus */
|
||
|
|
||
|
#endif /* MJS_GC_PUBLIC_H_ */
|