2023-01-10 07:13:00 -06:00
|
|
|
#ifndef FFI_H
|
|
|
|
#define FFI_H
|
|
|
|
|
|
|
|
#include "duktape.h"
|
2023-02-02 17:52:15 -06:00
|
|
|
#include <chipmunk/chipmunk.h>
|
2023-01-10 07:13:00 -06:00
|
|
|
|
|
|
|
void ffi_load();
|
|
|
|
|
2023-02-02 17:52:15 -06:00
|
|
|
|
|
|
|
void duk_dump_stack(duk_context *duk);
|
|
|
|
|
|
|
|
duk_idx_t vect2duk(cpVect v);
|
|
|
|
cpVect duk2vec2(duk_context *duk, int p);
|
|
|
|
|
|
|
|
void bitmask2duk(duk_context *duk, cpBitmask mask);
|
|
|
|
cpBitmask duk2bitmask(duk_context *duk, int p);
|
|
|
|
|
|
|
|
struct color duk2color(duk_context *duk, int p);
|
|
|
|
|
|
|
|
#endif
|