18 lines
402 B
C
18 lines
402 B
C
#ifndef SCRIPT_H
|
|
#define SCRIPT_H
|
|
|
|
#include "quickjs.h"
|
|
#include <SDL3/SDL.h>
|
|
|
|
extern SDL_TLSID on_exception;
|
|
extern SDL_TLSID js_id;
|
|
|
|
void script_startup(int argc, char **argv);
|
|
void script_stop(JSContext*);
|
|
|
|
void script_evalf(JSContext *js, const char *format, ...);
|
|
JSValue script_eval(JSContext *js, const char *file, const char *script);
|
|
void uncaught_exception(JSContext *js, JSValue v);
|
|
|
|
#endif
|