mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2025-10-09 22:52:32 +02:00
* js: value destructuring and tests * js: temporary fix to see size impact * js_val: reduce code size 1 * i may be stupid. * test: js_value args * Revert "js: temporary fix to see size impact" This reverts commit f51d726dbafc4300d3552020de1c3b8f9ecd3ac1. * pvs: silence warnings * style: formatting * pvs: silence warnings? * pvs: silence warnings?? * js_value: redesign declaration types for less code * js: temporary fix to see size impact * style: formatting * pvs: fix helpful warnings * js_value: reduce .rodata size * pvs: fix helpful warning * js_value: reduce code size 1 * fix build error * style: format * Revert "js: temporary fix to see size impact" This reverts commit d6a46f01794132e882e03fd273dec24386a4f8ba. * style: format * js: move to new arg parser * style: format --------- Co-authored-by: hedger <hedger@users.noreply.github.com>
34 lines
700 B
C
34 lines
700 B
C
#pragma once
|
|
|
|
#include <furi.h>
|
|
#include <mjs_core_public.h>
|
|
#include <mjs_ffi_public.h>
|
|
#include <mjs_exec_public.h>
|
|
#include <mjs_object_public.h>
|
|
#include <mjs_string_public.h>
|
|
#include <mjs_array_public.h>
|
|
#include <mjs_util_public.h>
|
|
#include <mjs_primitive_public.h>
|
|
#include <mjs_array_buf_public.h>
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
#define INST_PROP_NAME "_"
|
|
|
|
typedef enum {
|
|
ThreadEventStop = (1 << 0),
|
|
ThreadEventCustomDataRx = (1 << 1),
|
|
} WorkerEventFlags;
|
|
|
|
bool js_delay_with_flags(struct mjs* mjs, uint32_t time);
|
|
|
|
void js_flags_set(struct mjs* mjs, uint32_t flags);
|
|
|
|
uint32_t js_flags_wait(struct mjs* mjs, uint32_t flags, uint32_t timeout);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|