prosperon/source/engine/script.h

30 lines
489 B
C
Raw Permalink Normal View History

2021-11-30 21:29:18 -06:00
#ifndef SCRIPT_H
#define SCRIPT_H
2023-04-18 14:49:17 -05:00
#include "quickjs/quickjs.h"
#include <time.h>
2022-08-07 01:43:45 -05:00
2023-04-18 17:58:44 -05:00
extern JSContext *js;
2023-01-11 16:57:34 -06:00
2023-12-11 08:36:45 -06:00
struct phys_cbs {
2024-01-03 17:19:13 -06:00
JSValue begin;
JSValue bhit;
JSValue separate;
JSValue shit;
2023-12-11 08:36:45 -06:00
};
2023-04-22 14:07:37 -05:00
void script_startup();
2023-10-04 08:18:09 -05:00
void script_stop();
void out_memusage(const char *f);
void js_stacktrace();
void script_evalf(const char *format, ...);
JSValue script_eval(const char *file, const char *script);
void script_call_sym(JSValue sym, int argc, JSValue *argv);
2021-11-30 21:29:18 -06:00
2024-02-23 16:05:30 -06:00
void script_gc();
2023-06-06 15:49:55 -05:00
2022-02-06 10:14:57 -06:00
#endif